addCourse.vue 361 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202
  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="cidttt === 0" class="secondNo">
  20. <div
  21. v-if="steps == 2"
  22. class="newSteps second"
  23. @click="navSteps(2)"
  24. >
  25. <div style="margin: 5px 10px 0 0; width: 2rem">
  26. <img src="../../../assets/icon/second.png" alt />
  27. </div>
  28. <div>选择项目框架</div>
  29. </div>
  30. <div v-else class="newSteps secondNo" @click="navSteps(2)">
  31. <div>
  32. <img src="../../../assets/icon/secondNo.png" alt />
  33. </div>
  34. <div>选择项目框架</div>
  35. </div>
  36. </div>
  37. <div v-if="steps == 3" class="third" @click="navSteps(3)">
  38. <div>
  39. <img src="../../../assets/icon/third.png" alt />
  40. </div>
  41. <div>上传项目内容</div>
  42. </div>
  43. <div v-else class="thirdNo" @click="navSteps(3)">
  44. <div>
  45. <img src="../../../assets/icon/thirdNo.png" alt />
  46. </div>
  47. <div>上传项目内容</div>
  48. </div>
  49. <div v-if="steps == 4 && type == 2" class="four">
  50. <div>
  51. <img
  52. src="../../../assets/icon/five.png"
  53. alt
  54. style="width: 33px"
  55. />
  56. </div>
  57. <div>项目进展</div>
  58. </div>
  59. <div v-else-if="type == 2" class="fourNo" @click="navSteps(4)">
  60. <div>
  61. <img
  62. src="../../../assets/icon/fiveNo.png"
  63. alt
  64. style="width: 33px"
  65. />
  66. </div>
  67. <div>项目进展</div>
  68. </div>
  69. <div v-if="steps == 5" class="four">
  70. <div>
  71. <img src="../../../assets/icon/four.png" alt />
  72. </div>
  73. <div>上传完成</div>
  74. </div>
  75. <div v-else class="fourNo">
  76. <div>
  77. <img src="../../../assets/icon/fourNo.png" alt />
  78. </div>
  79. <div>上传完成</div>
  80. </div>
  81. </div>
  82. <div class="stepsBottom" v-if="steps == 3">
  83. <div class="navTop">辅助导航</div>
  84. <div class="navBottom">
  85. <div
  86. class="navTask"
  87. :class="{
  88. isNavTask: isClickColor > 0 && isClickColor == tIndex + 1,
  89. }"
  90. v-for="(t, tIndex) in unitJson[unitIndex].chapterInfo[0]
  91. .taskJson"
  92. :key="tIndex"
  93. @click="goToTask(tIndex)"
  94. >
  95. <div>任务{{ tIndex + 1 }}</div>
  96. <div>
  97. <el-tooltip effect="light" :content="t.task" placement="top">
  98. <span>{{ t.task }}</span>
  99. </el-tooltip>
  100. </div>
  101. <div
  102. class="moveBtn"
  103. v-if="unitJson[unitIndex].chapterInfo[0].taskJson.length > 1"
  104. >
  105. <div
  106. class="chapter_upload_up"
  107. style="width: 15px; height: 15px"
  108. @click.stop="taskMove(1, tIndex)"
  109. ></div>
  110. <div
  111. class="chapter_upload_down"
  112. style="width: 15px; height: 15px; margin: 2px 0 0"
  113. @click.stop="taskMove(2, tIndex)"
  114. ></div>
  115. </div>
  116. </div>
  117. </div>
  118. </div>
  119. </div>
  120. <!-- <div style="display: flex; margin-top: 20px; position: relative"> -->
  121. <div style="width: 100%; height: 100%; overflow: auto" ref="stepBox">
  122. <div class="courseTop">
  123. <div class="stepsNav">
  124. <h3 class="info_title" v-if="steps == 1">项目内容填写</h3>
  125. <h3 class="info_title" v-if="steps == 2">请选择项目框架</h3>
  126. <h3 class="info_title" v-if="steps == 3">项目内容填写</h3>
  127. <h3 class="info_title" v-if="steps == 4">项目管理</h3>
  128. <h3 class="info_title" v-if="steps == 5">上传项目</h3>
  129. <el-breadcrumb
  130. separator-class="el-icon-arrow-right"
  131. style="margin-top: 15px"
  132. >
  133. <!-- /studentCourse -->
  134. <el-breadcrumb-item
  135. :to="{
  136. path:
  137. fpath +
  138. '?userid=' +
  139. userid +
  140. '&oid=' +
  141. oid +
  142. '&org=' +
  143. org + '&role=' + role,
  144. }"
  145. >{{
  146. "工作管理"
  147. }}
  148. </el-breadcrumb-item>
  149. <el-breadcrumb-item>
  150. <span style="color: rgb(15, 126, 255)">添加项目</span>
  151. </el-breadcrumb-item>
  152. </el-breadcrumb>
  153. </div>
  154. <div
  155. v-if="steps == 1 || steps == 2 || steps == 3"
  156. class="stepsWord"
  157. >
  158. {{
  159. steps == 1
  160. ? "第一步"
  161. : steps == 2
  162. ? "第二步"
  163. : steps == 3
  164. ? cidttt === 0
  165. ? "第三步"
  166. : "第二步"
  167. : ""
  168. }}
  169. </div>
  170. </div>
  171. <div class="rightBox" v-if="this.steps == 1" @mousewheel="scrollChange">
  172. <div class="updateMask" :style="{
  173. height: rightBoxHeight ? rightBoxHeight + 'px' : '100%',
  174. }" v-if="cid && userid != courseUserid"></div>
  175. <div class="whiteBg">
  176. <div class="right_title" :class="{ updateTips: cid && userid != courseUserid }">项目基本信息</div>
  177. <div class="basic_box">
  178. <div class="big_box">
  179. <div class="left_first">
  180. <div>
  181. <div>
  182. <div class="bInfo_title" style="margin-bottom: 15px">
  183. <!-- <span style="color: red">*</span> -->
  184. 项目名称
  185. </div>
  186. <div style="display: flex; margin-right: 20px">
  187. <img
  188. src="../../../assets/icon/projectName.png"
  189. alt
  190. style="margin-right: 8px"
  191. />
  192. <input
  193. type="text"
  194. placeholder="请输入项目名称"
  195. class="binfo_input"
  196. v-model="courseName"
  197. />
  198. </div>
  199. </div>
  200. <div class="both" v-if="CourseType.length">
  201. <div class="choose">
  202. <div
  203. class="all_choose"
  204. v-for="(item, index) in CourseType[0]"
  205. :key="index"
  206. >
  207. <span v-if="CourseTypeJson[item.id].length > 0">{{
  208. item.name
  209. }}</span>
  210. <el-checkbox-group
  211. v-model="courseTypeId"
  212. v-if="CourseTypeJson[item.id].length > 0"
  213. >
  214. <!-- @change="updateType(item1)" -->
  215. <el-checkbox
  216. v-for="item1 in CourseTypeJson[item.id]"
  217. :key="item1.id"
  218. :label="item1.id"
  219. >{{ item1.name }}
  220. </el-checkbox>
  221. </el-checkbox-group>
  222. <!-- <div v-else style="font-size: 14px; ">
  223. 暂无分类
  224. </div> -->
  225. </div>
  226. </div>
  227. </div>
  228. <div class="subjectBox" v-if="false">
  229. <div class="bInfo_title">添加主题</div>
  230. <div class="subjectList"></div>
  231. <div class="subjectBtn">+ 添加</div>
  232. </div>
  233. </div>
  234. </div>
  235. </div>
  236. </div>
  237. </div>
  238. <div class="whiteBg" style="border-radius: 0">
  239. <div class="right_first">
  240. <div class="right_title">上传封面与成员</div>
  241. <div
  242. style="
  243. padding: 0 0 50px 20px;
  244. display: flex;
  245. align-items: baseline;
  246. justify-content: flex-start;
  247. margin: 0 auto;
  248. "
  249. >
  250. <div>
  251. <div class="bInfo_title" style="margin-top: 0 !important">
  252. 项目封面
  253. </div>
  254. <div
  255. class="uploadFm"
  256. @click="choosePicVisible = true"
  257. v-if="cover.length == 0"
  258. >
  259. <img src="../../../assets/icon/addPoster.png" alt="" />
  260. </div>
  261. <el-upload
  262. :class="{ disUoloadSty: noneBtnImg }"
  263. class="upCss"
  264. action="#"
  265. list-type="picture"
  266. v-loading="uploadLoading1"
  267. :http-request="beforeUpload1"
  268. ref="upload1"
  269. :on-preview="handlePictureCardPreview"
  270. :on-remove="handle_remove1"
  271. :show-file-list="true"
  272. :file-list="cover"
  273. accept="image/*"
  274. :limit="1"
  275. :on-exceed="onExceed"
  276. v-else
  277. >
  278. <i class="el-icon-plus"></i>
  279. </el-upload>
  280. </div>
  281. <div
  282. style="
  283. display: flex;
  284. flex-flow: row nowrap;
  285. flex-direction: row;
  286. flex-wrap: wrap;
  287. align-items: baseline;
  288. margin: 0 30px;
  289. "
  290. >
  291. <!-- <div style="margin: 0 80px">
  292. <div class="bInfo_title">
  293. 选择项目成员
  294. </div>
  295. <div
  296. class="addPeople"
  297. @click="addPP"
  298. v-if="this.checkboxList.length == 0"
  299. >添加成员</div>
  300. <div class="addPeople" @click="addPP" v-else>已添加,点击查看</div>
  301. </div>-->
  302. <!-- <div style="margin: 0 30px 0 0">
  303. <div class="bInfo_title">添加班级</div>
  304. <div class="addPeople" @click="dialogVisibleClass = true">
  305. 添加班级
  306. </div>
  307. </div> -->
  308. <div
  309. style="flex: 0.5 1 0%; margin: 0; width: 180px"
  310. v-if="courseUserid != '' ? courseUserid == userid : true"
  311. >
  312. <div class="bInfo_title">协同编辑</div>
  313. <div
  314. class="addPeople"
  315. @click="openMember"
  316. style="background: #6b92c9"
  317. >
  318. 添加协同成员
  319. </div>
  320. <div
  321. v-if="checkboxList3.length"
  322. style="
  323. max-width: 100%;
  324. word-break: break-all;
  325. overflow: hidden;
  326. margin-top: 10px;
  327. font-size: 14px;
  328. color: #6e6e6e;
  329. cursor:pointer
  330. "
  331. @click="checkBoolean = !checkBoolean"
  332. >
  333. <span
  334. :class="{ tcMember: getMan2(tc) }"
  335. v-for="(tc, tcIndex) in checkboxList3.length > 6 && checkBoolean ? checkboxList3 : checkboxList3.slice(0,6)"
  336. :key="tcIndex"
  337. >{{ getMan2(tc) }}</span
  338. ><span class="tcMember" v-if="checkboxList3.length > 6 && !checkBoolean">更多...</span>
  339. </div>
  340. </div>
  341. </div>
  342. </div>
  343. </div>
  344. </div>
  345. <div class="whiteBg" style="border-radius: 0; margin-top: 15px">
  346. <div class="right_title">项目简要描述</div>
  347. <div style="width: 95%; padding: 15px 0px 15px 20px">
  348. <div style="width: 55%">
  349. <textarea
  350. rows="8"
  351. class="binfo_input"
  352. cols
  353. v-model="courseText"
  354. :placeholder="
  355. '1、项目内容说明' +
  356. '\n' +
  357. '2、项目学习知识目标' +
  358. '\n' +
  359. '3、项目学习技能目标'
  360. "
  361. ></textarea>
  362. </div>
  363. </div>
  364. <!-- <div style="width: 95%; margin: 15px auto">
  365. <el-switch
  366. v-model="isTeacherSee"
  367. active-text="允许给其他老师查看"
  368. style="padding-bottom: 30px"
  369. ></el-switch>
  370. </div>-->
  371. <div style="width: 95%; padding: 15px 0px 15px 20px">
  372. <el-switch
  373. v-model="isTeacherSee"
  374. active-text="是否公开此项目"
  375. style="padding-bottom: 30px"
  376. ></el-switch>
  377. </div>
  378. </div>
  379. <div
  380. class="whiteBg"
  381. style="border-radius: 0; margin-top: 15px; padding-bottom: 20px"
  382. v-if="false"
  383. >
  384. <div class="right_title">目标管理</div>
  385. <div style="margin: 15px auto; padding: 0 0 0 20px">
  386. <div
  387. style="
  388. width: 100%;
  389. display: flex;
  390. flex-direction: row;
  391. flex-wrap: nowrap;
  392. align-content: center;
  393. align-items: center;
  394. justify-content: space-between;
  395. "
  396. >
  397. <div
  398. style="
  399. display: flex;
  400. flex-flow: row nowrap;
  401. align-items: flex-start;
  402. width: 100%;
  403. flex-direction: column;
  404. flex-wrap: nowrap;
  405. position: relative;
  406. "
  407. >
  408. <!-- <div style="margin-right: 15px; min-width: 120px">
  409. 请选择评价指标
  410. </div>
  411. <div>
  412. <el-select
  413. v-model="evalua"
  414. placeholder="请选择体系"
  415. @change="checkEva"
  416. >
  417. <el-option
  418. v-for="(e, eIndex) in evaJuri"
  419. :key="eIndex"
  420. :label="e.title"
  421. :value="e.id"
  422. ></el-option>
  423. </el-select>
  424. </div> -->
  425. <!-- <div
  426. @click="openT"
  427. class="addPeople"
  428. style="
  429. background: #6b92c9;
  430. margin: 0 0 0 15px;
  431. position: absolute;
  432. right: 23%;
  433. "
  434. >
  435. 前往设置目标管理
  436. </div> -->
  437. <div class="e_box">
  438. <div
  439. class="e_card"
  440. v-for="(item, index) in evaJuri"
  441. :key="index"
  442. >
  443. <div class="e_card_picture">
  444. <img src="../../../assets/e_picture.png" />
  445. </div>
  446. <div class="e_card_name">
  447. <span>{{ item.title }}</span>
  448. </div>
  449. <!-- <div class="e_card_time">
  450. <span>{{ item.time }}</span>
  451. </div> -->
  452. <div class="e_card_btn">
  453. <span @click="checkEva(item.id)">导入</span>
  454. <!-- <span @click="openT">前往设置</span> -->
  455. </div>
  456. </div>
  457. <div class="addEva" @click="openT">
  458. <img src="../../../assets/icon/addEva.png" alt="" />
  459. </div>
  460. <div
  461. v-if="evaJuri.length === 0"
  462. style="margin: 0 auto; color: #6e6e6e"
  463. >
  464. 暂无数据
  465. </div>
  466. </div>
  467. </div>
  468. </div>
  469. <div
  470. v-if="evalua"
  471. style="
  472. border: 1px solid #e5e5e5;
  473. width: 95%;
  474. margin-top: 30px;
  475. box-shadow: 3px 1px 15px 3px #e0e0e0;
  476. "
  477. >
  478. <div class="e_add_top">
  479. <div class="e_add_title">
  480. <span>当前使用目标管理</span>
  481. <span>{{ eTitle }}</span>
  482. <img
  483. src="../../../assets/line.png"
  484. class="cru_line"
  485. style="
  486. width: 125px;
  487. height: 20px;
  488. bottom: -10px;
  489. left: 155px;
  490. "
  491. />
  492. <!-- <el-input
  493. v-model="eTitle"
  494. placeholder="请输入名称"
  495. @change="setMindData"
  496. ></el-input>-->
  497. </div>
  498. </div>
  499. <div class="e_add_content">
  500. <div class="e_add_list_pbox">
  501. <div class="e_add_list_pbox_title">
  502. <span class="type_title">切换模式</span>
  503. <div class="type_content">
  504. <span
  505. :class="{ active: typeMode == 1 }"
  506. @click="OtherMb(1)"
  507. >目标树</span
  508. >
  509. <span
  510. :class="{ active: typeMode == 2 }"
  511. @click="OtherMb(2)"
  512. >目标罗盘</span
  513. >
  514. <span
  515. :class="{ active: typeMode == 3 }"
  516. @click="OtherMb(3)"
  517. >目标看板</span
  518. >
  519. </div>
  520. </div>
  521. <div class="e_add_list_pbox_content">
  522. <Mind
  523. :showBar="false"
  524. :mindData="data"
  525. v-show="typeMode == 1"
  526. ></Mind>
  527. <Sunburst
  528. :Josn="eJson"
  529. :num="eJSONNum"
  530. style="width: 100%"
  531. v-if="typeMode == 2"
  532. ></Sunburst>
  533. <SeeBoard
  534. :Josn="eJson"
  535. :num="eJSONNum"
  536. :ename="eTitle"
  537. style="width: 100%"
  538. v-if="typeMode == 3"
  539. ></SeeBoard>
  540. </div>
  541. </div>
  542. </div>
  543. </div>
  544. </div>
  545. </div>
  546. </div>
  547. <div class="rightBox" v-if="this.steps == 2">
  548. <div
  549. class="basic_box"
  550. style="padding: 20px 30px 0px !important; box-sizing: border-box"
  551. >
  552. <!-- <div
  553. style="
  554. color: #b8b8b8;
  555. background: #fff;
  556. width: 26%;
  557. height: 40px;
  558. border-radius: 15px;
  559. padding-left: 20px;
  560. line-height: 40px;
  561. font-size: 17px;
  562. box-shadow: 0px 1px 2px 2px #e0e0e0;
  563. "
  564. >-->
  565. <div
  566. class="right_title"
  567. style="border: none; margin: 0; padding: 0"
  568. >
  569. 请选择合适的项目模板
  570. </div>
  571. <div class="wordbox">
  572. <div
  573. class="wordTeacher"
  574. v-for="(aa, indexF) in templateArray"
  575. :key="indexF"
  576. @click="checkTemplate(aa)"
  577. >
  578. <div class="wordPic">
  579. <img src="../../../assets/icon/wordMub.png" alt />
  580. </div>
  581. <div
  582. style="
  583. margin-top: 10px;
  584. line-height: 19px;
  585. overflow: hidden;
  586. text-overflow: ellipsis;
  587. white-space: nowrap;
  588. padding: 0 20px;
  589. "
  590. >
  591. {{ aa.title }}
  592. </div>
  593. </div>
  594. <div class="wordTeacher" @click="checkTemplate2()">
  595. <div class="wordPic">
  596. <img src="../../../assets/icon/wordMub.png" alt />
  597. </div>
  598. <div
  599. style="
  600. margin-top: 10px;
  601. line-height: 19px;
  602. overflow: hidden;
  603. text-overflow: ellipsis;
  604. white-space: nowrap;
  605. padding: 0 20px;
  606. "
  607. >
  608. 新建项目
  609. </div>
  610. </div>
  611. <!-- <div class="wordTeacher" @click="checkTemplate1()">
  612. <div class="wordPic">
  613. <img src="../../../assets/icon/wordMub.png" alt />
  614. </div>
  615. <div style="
  616. margin-top: 10px;
  617. line-height: 19px;
  618. overflow: hidden;
  619. text-overflow: ellipsis;
  620. white-space: nowrap;
  621. padding: 0 20px;
  622. ">
  623. 我的项目
  624. </div>
  625. </div> -->
  626. </div>
  627. </div>
  628. </div>
  629. <div class="rightBox" v-if="this.steps == 3" ref="rightboxR">
  630. <div class="basic_box">
  631. <div
  632. style="
  633. display: flex;
  634. flex-direction: row;
  635. align-items: center;
  636. position: sticky;
  637. top: 0;
  638. background: #fff;
  639. z-index: 99;
  640. width: 100%;
  641. padding: 0 20px 0 20px;
  642. box-sizing: border-box;
  643. "
  644. >
  645. <div class="cru_selectBox">
  646. <div
  647. v-for="(item, index) in unitJson"
  648. :key="index"
  649. class="cru_select"
  650. :class="unitIndex == index ? 'cru_selected' : ''"
  651. @click="unitSet(index)"
  652. >
  653. 第{{ index + 1 }}阶段
  654. </div>
  655. <img
  656. src="../../../assets/line.png"
  657. class="cru_line"
  658. :style="{
  659. left: offsetLetfPx + 'px',
  660. }"
  661. />
  662. </div>
  663. <div class="addStageImg" @click="addunit()">
  664. <img src="../../../assets/icon/add.png" alt />
  665. </div>
  666. </div>
  667. <div
  668. style="margin: 0 0 40px 0; padding: 0 20px 0 20px"
  669. v-for="(item, index) in unitJson[unitIndex].chapterInfo"
  670. :key="index"
  671. >
  672. <div>
  673. <div class="chapter_contentbox">
  674. <div>第{{ unitIndex + 1 }}阶段</div>
  675. <div>
  676. <input
  677. type="text"
  678. placeholder="阶段标题"
  679. class="binfo_input"
  680. v-model="unitJson[unitIndex].dyName"
  681. />
  682. </div>
  683. <div
  684. v-if="unitJson.length > 1"
  685. @click="deleteUnit(unitIndex)"
  686. ></div>
  687. </div>
  688. </div>
  689. <div class="task_add_title">添加任务</div>
  690. <div
  691. class="taskBorder"
  692. v-for="(itemTask, itemTaskIndex) in item.taskJson"
  693. :key="itemTaskIndex"
  694. >
  695. <div>
  696. <div>
  697. <div
  698. style="font-size: 22px; color: #8e8e8e"
  699. :id="'task' + itemTaskIndex"
  700. >
  701. 任务{{ itemTaskIndex + 1 }}
  702. </div>
  703. <div
  704. class="chapter_contentbox"
  705. style="
  706. flex-direction: row;
  707. justify-content: flex-start;
  708. align-items: center;
  709. flex-wrap: wrap;
  710. "
  711. >
  712. <div
  713. style="
  714. flex-direction: row;
  715. justify-content: flex-start;
  716. align-items: center;
  717. flex-wrap: wrap;
  718. display: flex;
  719. width: calc(100% - 115px);
  720. "
  721. >
  722. <div
  723. style="
  724. flex-direction: row;
  725. justify-content: flex-start;
  726. align-items: center;
  727. display: flex;
  728. margin-bottom: 10px;
  729. "
  730. >
  731. <div
  732. style="
  733. border-left: 6px solid #5699e8;
  734. height: 20px;
  735. padding: 0 10px;
  736. line-height: 22px;
  737. "
  738. >
  739. 任务名称
  740. </div>
  741. <div style="width: auto">
  742. <input
  743. type="text"
  744. placeholder="输入任务名称"
  745. class="binfo_input"
  746. style="border-radius: 4px"
  747. v-model="
  748. unitJson[unitIndex].chapterInfo[0].taskJson[
  749. itemTaskIndex
  750. ].task
  751. "
  752. />
  753. </div>
  754. </div>
  755. <div
  756. style="
  757. flex-direction: row;
  758. justify-content: flex-start;
  759. align-items: center;
  760. display: flex;
  761. margin-bottom: 10px;
  762. "
  763. >
  764. <div
  765. style="
  766. height: 20px;
  767. padding: 0 10px 0 16px;
  768. line-height: 22px;
  769. "
  770. >
  771. 负责人
  772. </div>
  773. <div style="width: auto">
  774. <!-- <input type="text" placeholder="输入负责人" class="binfo_input" style="border-radius: 4px"
  775. v-model="
  776. unitJson[unitIndex].chapterInfo[0].taskJson[
  777. itemTaskIndex
  778. ].people
  779. " /> -->
  780. <el-select
  781. v-model="
  782. unitJson[unitIndex].chapterInfo[0].taskJson[
  783. itemTaskIndex
  784. ].people
  785. "
  786. placeholder="请选择负责人"
  787. clearable
  788. filterable
  789. @change="
  790. peopleChange(
  791. unitJson[unitIndex].chapterInfo[0].taskJson[
  792. itemTaskIndex
  793. ].people,
  794. itemTaskIndex
  795. )
  796. "
  797. >
  798. <el-option
  799. v-for="item in ManAarray"
  800. :key="item.userid"
  801. :label="
  802. item.name +
  803. (item.type == 1 ? '(老师)' : '(学生)')
  804. "
  805. :value="item.userid"
  806. >
  807. </el-option>
  808. </el-select>
  809. </div>
  810. </div>
  811. <!-- <div class="addPeople" @click="addTcMember(itemTaskIndex)"
  812. style="background: rgb(107, 146, 201);margin: 0 0 10px 15px;margin-bottom: 10px;width: 100px;">
  813. {{
  814. (unitJson[unitIndex].chapterInfo[0].taskJson[itemTaskIndex].tcMember
  815. &&
  816. unitJson[unitIndex].chapterInfo[0].taskJson[itemTaskIndex].tcMember.length)
  817. ? '已添加' : '添加协同者'
  818. }}
  819. </div> -->
  820. </div>
  821. <div
  822. class="remove"
  823. v-if="item.taskJson.length > 1"
  824. @click="deleteTask(itemTaskIndex)"
  825. style="position: absolute; right: 55px"
  826. ></div>
  827. </div>
  828. <div
  829. style="
  830. flex-direction: row;
  831. justify-content: flex-start;
  832. align-items: center;
  833. display: flex;
  834. margin: 10px 0 15px;
  835. "
  836. >
  837. <div
  838. style="
  839. height: 20px;
  840. padding-left: 16px;
  841. line-height: 22px;
  842. font-size: 18px;
  843. "
  844. >
  845. 协同人员
  846. </div>
  847. <el-tooltip
  848. :content="
  849. getMen(
  850. unitJson[unitIndex].chapterInfo[0].taskJson[
  851. itemTaskIndex
  852. ].tcMember
  853. )
  854. "
  855. placement="top"
  856. effect="dark"
  857. v-if="
  858. unitJson[unitIndex].chapterInfo[0].taskJson[
  859. itemTaskIndex
  860. ].tcMember &&
  861. unitJson[unitIndex].chapterInfo[0].taskJson[
  862. itemTaskIndex
  863. ].tcMember.length
  864. "
  865. >
  866. <div
  867. class="tcMember_box"
  868. @click="addTcMember(itemTaskIndex)"
  869. >
  870. <span
  871. :class="{ tcMember: getMan(tc) }"
  872. v-for="(tc, tcIndex) in unitJson[unitIndex]
  873. .chapterInfo[0].taskJson[itemTaskIndex]
  874. .tcMember"
  875. :key="tcIndex"
  876. >{{ getMan(tc) }}</span
  877. >
  878. </div>
  879. </el-tooltip>
  880. <div
  881. class="tcMember_box"
  882. @click="addTcMember(itemTaskIndex)"
  883. v-else
  884. >
  885. <span>点击添加协同成员</span>
  886. </div>
  887. </div>
  888. <div
  889. style="
  890. flex-direction: row;
  891. justify-content: flex-start;
  892. align-items: center;
  893. display: flex;
  894. margin-top: 10px;
  895. "
  896. >
  897. <div
  898. style="
  899. height: 20px;
  900. padding-left: 16px;
  901. line-height: 22px;
  902. "
  903. >
  904. 任务起止时间
  905. </div>
  906. <div style="margin-left: 20px">
  907. <el-date-picker
  908. v-model="
  909. unitJson[unitIndex].chapterInfo[0].taskJson[
  910. itemTaskIndex
  911. ].time
  912. "
  913. type="datetimerange"
  914. range-separator="至"
  915. start-placeholder="开始日期"
  916. end-placeholder="结束日期"
  917. >
  918. </el-date-picker>
  919. </div>
  920. </div>
  921. <div
  922. style="
  923. display: flex;
  924. margin: 0 0 20px 0;
  925. flex-direction: row;
  926. justify-content: flex-start;
  927. align-items: center;
  928. width: 70.5% !important;
  929. "
  930. >
  931. <div class="lineTitle">任务描述</div>
  932. <div class="line"></div>
  933. </div>
  934. <div>
  935. <editor-bar
  936. style="
  937. width: 90% !important;
  938. margin: 0;
  939. height: 500px;
  940. "
  941. class="ed_s"
  942. placeholder="请输入任务描述"
  943. v-model="
  944. unitJson[unitIndex].chapterInfo[0].taskJson[
  945. itemTaskIndex
  946. ].taskDetail
  947. "
  948. @change="change"
  949. ></editor-bar>
  950. </div>
  951. </div>
  952. </div>
  953. <div
  954. class="basic_box"
  955. v-if="false"
  956. style="
  957. margin: 0;
  958. min-height: 0;
  959. width: 90% !important;
  960. paddint-top: 10px !important;
  961. "
  962. >
  963. <div
  964. style="
  965. display: flex;
  966. margin: 0 0 20px 0;
  967. flex-direction: row;
  968. justify-content: flex-start;
  969. align-items: center;
  970. "
  971. >
  972. <div class="lineTitle">资源库</div>
  973. <div class="line"></div>
  974. </div>
  975. <div>
  976. <div
  977. class="add_chapters_box"
  978. v-if="
  979. itemTask.chapterData &&
  980. itemTask.chapterData.length == 0
  981. "
  982. style="height: 185px"
  983. ></div>
  984. <div
  985. v-else
  986. class="add_chapters_box"
  987. style="display: flex; flex-direction: column"
  988. >
  989. <div
  990. class="chapter_upload"
  991. v-for="(item1, index1) in itemTask.chapterData"
  992. :key="item1.id"
  993. @click="
  994. getChapterData(
  995. $event,
  996. unitIndex,
  997. index,
  998. index1,
  999. item1.type
  1000. )
  1001. "
  1002. >
  1003. <div
  1004. class="chapter_upload_t"
  1005. style="width: 100%"
  1006. ></div>
  1007. <div
  1008. class="chapter_upload_o"
  1009. style="
  1010. position: relative;
  1011. display: flex;
  1012. align-items: center;
  1013. "
  1014. >
  1015. <div
  1016. class="chapter_upload_l"
  1017. style="padding: 1px 0 0 10px"
  1018. >
  1019. <div
  1020. v-if="item1.type == 2"
  1021. class="chapter_upload_l_i1"
  1022. ></div>
  1023. <div
  1024. v-if="
  1025. item1.type == 3 ||
  1026. item1.type == 9 ||
  1027. item1.type == 6 ||
  1028. item1.type == 7
  1029. "
  1030. class="chapter_upload_l_i5"
  1031. style="margin-left: 1px"
  1032. ></div>
  1033. <div
  1034. v-if="item1.type == 8"
  1035. class="chapter_upload_l_i8"
  1036. style="margin-left: 1px"
  1037. ></div>
  1038. </div>
  1039. <div
  1040. class="chapter_upload_ic"
  1041. style="
  1042. cursor: pointer;
  1043. position: absolute;
  1044. width: 45px;
  1045. right: 0;
  1046. top: 0;
  1047. "
  1048. >
  1049. <div class="chapter_upload_ic_l"></div>
  1050. <div
  1051. class="chapter_upload_ic_r"
  1052. style="position: absolute"
  1053. @click.stop="
  1054. deleteChapterData(
  1055. $event,
  1056. unitIndex,
  1057. index,
  1058. index1,
  1059. itemTaskIndex
  1060. )
  1061. "
  1062. >
  1063. <div></div>
  1064. </div>
  1065. </div>
  1066. <div class="chapter_upload_n">
  1067. <input
  1068. v-if="
  1069. item1.type == 2 ||
  1070. item1.type == 3 ||
  1071. item1.type == 9 ||
  1072. item1.type == 7
  1073. "
  1074. :placeholder="item1.name"
  1075. @change="
  1076. updataVideoT(
  1077. $event,
  1078. unitIndex,
  1079. chapterIndex,
  1080. index1
  1081. )
  1082. "
  1083. style="
  1084. border: none;
  1085. outline: none;
  1086. width: 80%;
  1087. minwidth: 215px;
  1088. z-index: 99;
  1089. font-size: 14px;
  1090. white-space: nowrap;
  1091. overflow: hidden;
  1092. text-overflow: ellipsis;
  1093. "
  1094. />
  1095. <input
  1096. :placeholder="item1.name"
  1097. v-if="item1.type == 6"
  1098. style="
  1099. border: none;
  1100. outline: none;
  1101. width: 80%;
  1102. white-space: nowrap;
  1103. overflow: hidden;
  1104. text-overflow: ellipsis;
  1105. "
  1106. readonly="true"
  1107. @click="selectAttText(itemTaskIndex, index1)"
  1108. />
  1109. <input
  1110. :placeholder="
  1111. item1.title ? item1.title : '链接'
  1112. "
  1113. v-if="item1.type == 8"
  1114. style="
  1115. border: none;
  1116. outline: none;
  1117. width: 80%;
  1118. white-space: nowrap;
  1119. overflow: hidden;
  1120. text-overflow: ellipsis;
  1121. "
  1122. readonly="true"
  1123. @click="selectLine(itemTaskIndex, index1)"
  1124. />
  1125. <div
  1126. class="chapter_upload_ud"
  1127. style="z-index: 99"
  1128. >
  1129. <div
  1130. class="chapter_upload_up"
  1131. @click="
  1132. upCd($event, unitIndex, index, index1)
  1133. "
  1134. ></div>
  1135. <div
  1136. class="chapter_upload_down"
  1137. @click="
  1138. downCd($event, unitIndex, index, index1)
  1139. "
  1140. ></div>
  1141. </div>
  1142. </div>
  1143. </div>
  1144. </div>
  1145. </div>
  1146. </div>
  1147. <div class="add_info_box">
  1148. <button class="info_btn" @click="addImg($event)">
  1149. 添加视频
  1150. <!-- capture="camera" -->
  1151. <input
  1152. type="file"
  1153. accept="video/mp4, video/quicktime, video/x-msvideo"
  1154. style="display: none"
  1155. v-if="inputShow"
  1156. @change="
  1157. beforeUpload2($event, unitIndex, 2, itemTaskIndex)
  1158. "
  1159. />
  1160. </button>
  1161. <button class="info_btn" @click="addImg($event)">
  1162. 添加附件
  1163. <input
  1164. type="file"
  1165. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  1166. style="display: none"
  1167. v-if="inputShow"
  1168. @change="
  1169. beforeUpload2($event, unitIndex, 3, itemTaskIndex)
  1170. "
  1171. />
  1172. </button>
  1173. <button
  1174. class="info_btn"
  1175. @click="addAttText(itemTaskIndex)"
  1176. >
  1177. 添加图文
  1178. </button>
  1179. <button class="info_btn" @click="openLine(itemTaskIndex)">
  1180. 添加链接
  1181. </button>
  1182. </div>
  1183. <div
  1184. v-if="
  1185. unitJson[unitIndex].chapterInfo[0].taskJson[
  1186. itemTaskIndex
  1187. ].proVisible
  1188. "
  1189. class="mask"
  1190. >
  1191. <div class="progressBox">
  1192. <div class="lbox">
  1193. <img
  1194. src="../../../assets/loading.gif"
  1195. />上传中,请稍后
  1196. </div>
  1197. <el-progress
  1198. :text-inside="true"
  1199. :stroke-width="20"
  1200. :percentage="
  1201. unitJson[unitIndex].chapterInfo[0].taskJson[
  1202. itemTaskIndex
  1203. ].progress
  1204. ? unitJson[unitIndex].chapterInfo[0].taskJson[
  1205. itemTaskIndex
  1206. ].progress
  1207. : 0
  1208. "
  1209. style="width: 80%"
  1210. ></el-progress>
  1211. </div>
  1212. </div>
  1213. </div>
  1214. <div class="toolChoose" style="padding: 0 0 30px 30px">
  1215. <div class="tools" style="margin-top: 20px">
  1216. <div
  1217. class="leftTools"
  1218. style="
  1219. width: 95%;
  1220. padding: 0 0 15px 0;
  1221. border-bottom: 1px solid #efefef;
  1222. margin-bottom: 15px;
  1223. "
  1224. v-for="(itemTool, toolIndex) in itemTask.toolArray"
  1225. :key="toolIndex"
  1226. >
  1227. <div
  1228. style="
  1229. display: flex;
  1230. flex-direction: row;
  1231. align-items: center;
  1232. flex-wrap: nowrap;
  1233. justify-content: flex-start;
  1234. position: relative;
  1235. "
  1236. >
  1237. <div style="margin-right: 20px; font-weight: bold">
  1238. 步骤 {{ toolIndex + 1 }} :
  1239. </div>
  1240. <div class="chooseWho" style="padding-bottom: 0">
  1241. <span v-if="itemTool.tool == 1"> 电子白板 </span>
  1242. <span v-if="itemTool.tool == 3"> 思维导图 </span>
  1243. <span v-if="itemTool.tool == 6"> 协同文档 </span>
  1244. <span v-if="itemTool.tool == 15"> 问答 </span>
  1245. <span v-if="itemTool.tool == 48"> 表格 </span>
  1246. <span v-if="itemTool.tool == 51"> 资源库 </span>
  1247. <span v-if="itemTool.tool == 52"> 文档 </span>
  1248. <span v-if="itemTool.tool == 53"> 文件上传 </span>
  1249. <span v-if="itemTool.tool == 54"> 拍照 </span>
  1250. <span v-if="itemTool.tool == 55"> 文件 </span>
  1251. <span v-if="itemTool.tool == 56"> 投票 </span>
  1252. <span v-if="itemTool.tool == 57"> CocoPi </span>
  1253. </div>
  1254. <div
  1255. class="remove"
  1256. @click="deleteTool(itemTaskIndex, toolIndex)"
  1257. v-if="itemTask.toolArray.length > 0"
  1258. style="position: absolute; right: 55px"
  1259. ></div>
  1260. </div>
  1261. <div v-if="itemTool.tool != 51">
  1262. <textarea
  1263. rows="3"
  1264. type="text"
  1265. placeholder="添加工具描述"
  1266. class="binfo_input"
  1267. style="
  1268. margin: 20px 0 0;
  1269. resize: none;
  1270. width: 71.5% !important;
  1271. "
  1272. v-model="itemTool.toolDetail"
  1273. ></textarea>
  1274. </div>
  1275. <div style="margin-top: 10px">
  1276. <div class="tool" v-if="itemTool.tool == 1">
  1277. <div
  1278. class="whiteBIcon"
  1279. @click="openToolFun(1, itemTaskIndex, toolIndex)"
  1280. >
  1281. <img
  1282. src="../../../assets/icon/secondToolList/whiteBoard.png"
  1283. alt
  1284. />
  1285. <div style="margin: 5px 0">电子白板</div>
  1286. </div>
  1287. </div>
  1288. <div class="tool" v-if="itemTool.tool == 3">
  1289. <div
  1290. class="whiteBIcon"
  1291. @click="openToolFun(3, itemTaskIndex, toolIndex)"
  1292. >
  1293. <img
  1294. src="../../../assets/icon/secondToolList/mindMapping.png"
  1295. alt
  1296. />
  1297. <div style="margin: 5px 0">思维导图</div>
  1298. </div>
  1299. </div>
  1300. <div class="tool" v-if="itemTool.tool == 6">
  1301. <div
  1302. class="whiteBIcon"
  1303. @click="openToolFun(6, itemTaskIndex, toolIndex)"
  1304. >
  1305. <img
  1306. src="../../../assets/icon/secondToolList/doc.png"
  1307. alt
  1308. />
  1309. <div style="margin: 5px 0">协同文档</div>
  1310. </div>
  1311. </div>
  1312. <div class="tool" v-if="itemTool.tool == 15">
  1313. <div
  1314. class="whiteBIcon"
  1315. @click="openToolFun(15, itemTaskIndex, toolIndex)"
  1316. >
  1317. <img
  1318. src="../../../assets/icon/thirdToolList/answer.png"
  1319. alt
  1320. />
  1321. <div style="margin: 5px 0">问答</div>
  1322. </div>
  1323. </div>
  1324. <div
  1325. class="tool"
  1326. v-if="
  1327. itemTool.tool == 48 && !itemTool.toolPhoto.length
  1328. "
  1329. >
  1330. <div
  1331. class="whiteBIcon"
  1332. @click="openToolFun(48, itemTaskIndex, toolIndex)"
  1333. >
  1334. <img
  1335. src="../../../assets/icon/fourthToolList/table.png"
  1336. alt
  1337. />
  1338. <div style="margin: 5px 0">表格</div>
  1339. </div>
  1340. </div>
  1341. <div
  1342. class="tool"
  1343. v-if="
  1344. itemTool.tool == 52 && !itemTool.toolPhoto.length
  1345. "
  1346. style="position: relative"
  1347. >
  1348. <div
  1349. class="whiteBIcon"
  1350. @click="openToolFun(52, itemTaskIndex, toolIndex)"
  1351. >
  1352. <img
  1353. src="../../../assets/icon/fourthToolList/text.png"
  1354. alt
  1355. />
  1356. <div style="margin: 5px 0">文档</div>
  1357. </div>
  1358. </div>
  1359. <div
  1360. class="tool"
  1361. v-if="itemTool.tool == 53"
  1362. style="position: relative"
  1363. >
  1364. <div
  1365. class="whiteBIcon"
  1366. :id="itemTaskIndex + '-' + toolIndex"
  1367. @click="addImg($event)"
  1368. >
  1369. <img
  1370. src="../../../assets/icon/fourthToolList/file.png"
  1371. alt
  1372. />
  1373. <div style="margin: 5px 0">文件上传</div>
  1374. <input
  1375. type="file"
  1376. accept="application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document,application/zip"
  1377. style="display: none"
  1378. @change="
  1379. beforeUploadCC(
  1380. $event,
  1381. 1,
  1382. itemTaskIndex,
  1383. toolIndex,
  1384. 53
  1385. )
  1386. "
  1387. />
  1388. <div v-if="itemTool.proVisible" class="mask">
  1389. <div class="lbox2">
  1390. <img src="../../../assets/loading.gif" />
  1391. </div>
  1392. </div>
  1393. </div>
  1394. </div>
  1395. <div
  1396. class="tool"
  1397. v-if="itemTool.tool == 54"
  1398. style="
  1399. display: flex;
  1400. flex-direction: row;
  1401. align-items: flex-end;
  1402. "
  1403. >
  1404. <div
  1405. class="whiteBIcon"
  1406. :id="itemTaskIndex + '-' + toolIndex"
  1407. @click="addImg($event)"
  1408. style="position: relative"
  1409. >
  1410. <img
  1411. src="../../../assets/icon/fourthToolList/photo.png"
  1412. alt
  1413. />
  1414. <div style="margin: 5px 0">拍照</div>
  1415. <!-- capture="camera" -->
  1416. <input
  1417. type="file"
  1418. accept="video/mp4, video/quicktime, video/x-msvideo,image/*"
  1419. style="display: none"
  1420. @change="
  1421. beforeUploadCC(
  1422. $event,
  1423. 2,
  1424. itemTaskIndex,
  1425. toolIndex,
  1426. 54
  1427. )
  1428. "
  1429. />
  1430. <div
  1431. v-if="itemTool.proVisible"
  1432. class="mask"
  1433. style="background: unset"
  1434. @click.stop="1"
  1435. >
  1436. <div class="lbox2"></div>
  1437. </div>
  1438. </div>
  1439. <div
  1440. v-if="itemTool.proVisible"
  1441. style="margin: 5px 0"
  1442. class="f_size_box"
  1443. >
  1444. <img src="../../../assets/loading.gif" />
  1445. <div>
  1446. <span>{{ itemTool.isFinishSize }}M</span> /
  1447. <span>{{ itemTool.isAllSize }}M</span>
  1448. </div>
  1449. <!-- <el-button type="text">取消</el-button> -->
  1450. </div>
  1451. </div>
  1452. <div
  1453. class="tool"
  1454. v-if="itemTool.tool == 55"
  1455. style="
  1456. display: flex;
  1457. flex-direction: row;
  1458. align-items: flex-end;
  1459. "
  1460. >
  1461. <div
  1462. class="whiteBIcon"
  1463. :id="itemTaskIndex + '-' + toolIndex"
  1464. @click="addImg($event)"
  1465. style="position: relative"
  1466. >
  1467. <img
  1468. src="../../../assets/icon/fourthToolList/zip.png"
  1469. alt
  1470. />
  1471. <div style="margin: 5px 0">文件</div>
  1472. <input
  1473. type="file"
  1474. accept="*"
  1475. style="display: none"
  1476. @change="
  1477. beforeUploadCC(
  1478. $event,
  1479. 3,
  1480. itemTaskIndex,
  1481. toolIndex,
  1482. 55
  1483. )
  1484. "
  1485. />
  1486. <div
  1487. v-if="itemTool.proVisible"
  1488. class="mask"
  1489. style="background: unset"
  1490. @click.stop="1"
  1491. >
  1492. <div class="lbox2"></div>
  1493. </div>
  1494. </div>
  1495. <div
  1496. v-if="itemTool.proVisible"
  1497. style="margin: 5px 0"
  1498. class="f_size_box"
  1499. >
  1500. <img src="../../../assets/loading.gif" />
  1501. <div>
  1502. <span>{{ itemTool.isFinishSize }}M</span> /
  1503. <span>{{ itemTool.isAllSize }}M</span>
  1504. </div>
  1505. <!-- <el-button type="text">取消</el-button> -->
  1506. </div>
  1507. </div>
  1508. <div class="tool" v-if="itemTool.tool == 56">
  1509. <div
  1510. class="whiteBIcon"
  1511. @click="openToolFun(56, itemTaskIndex, toolIndex)"
  1512. >
  1513. <img
  1514. src="../../../assets/icon/thirdToolList/ask.png"
  1515. alt
  1516. />
  1517. <div style="margin: 5px 0">投票</div>
  1518. </div>
  1519. </div>
  1520. <div v-if="itemTool.tool == 57">
  1521. <div>
  1522. <iframe
  1523. src="https://v.cocorobo.cn"
  1524. frameborder="0"
  1525. width="100%"
  1526. height="650"
  1527. ></iframe>
  1528. </div>
  1529. </div>
  1530. <div v-if="itemTool.tool == 51">
  1531. <div class="vedioTaskBox">
  1532. <div
  1533. class="box_course"
  1534. :class="
  1535. 'box_course' + itemTaskIndex + toolIndex
  1536. "
  1537. v-if="itemTool.toolData.length > 0"
  1538. >
  1539. <div
  1540. class="wheel"
  1541. v-if="
  1542. itemTool.toolData[itemTool.sourceIndex]
  1543. .type == 2
  1544. "
  1545. >
  1546. <div class="workd_media" style="height: 100%">
  1547. <video-player
  1548. class="video-player vjs-custom-skin"
  1549. :playsinline="true"
  1550. :options="
  1551. itemTool.toolData[itemTool.sourceIndex]
  1552. .src
  1553. "
  1554. @play="onPlayerPlay($event)"
  1555. style="width: 99%; height: 100%"
  1556. ></video-player>
  1557. </div>
  1558. </div>
  1559. <div
  1560. class="wheel"
  1561. v-if="
  1562. itemTool.toolData[itemTool.sourceIndex]
  1563. .type == 6
  1564. "
  1565. style="
  1566. box-shadow: 0 0 6px 1px #f2f2f2;
  1567. width: 99%;
  1568. background: #f1f1f1;
  1569. height: 650px;
  1570. "
  1571. >
  1572. <div class="texttitle">查看文档</div>
  1573. <el-form class="textBox">
  1574. <el-form-item class="textTitle">
  1575. <div
  1576. style="
  1577. font-size: 22px;
  1578. max-height: 100px;
  1579. overflow: auto;
  1580. "
  1581. >
  1582. {{
  1583. itemTool.toolData[
  1584. itemTool.sourceIndex
  1585. ].name
  1586. }}
  1587. </div>
  1588. </el-form-item>
  1589. <div
  1590. v-html="
  1591. itemTool.toolData[itemTool.sourceIndex]
  1592. .url
  1593. "
  1594. class="textContent"
  1595. ></div>
  1596. </el-form>
  1597. </div>
  1598. <div
  1599. class="wheel"
  1600. v-if="
  1601. itemTool.toolData[itemTool.sourceIndex]
  1602. .type == 3
  1603. "
  1604. style="height: 650px; width: 99%"
  1605. >
  1606. <iframe
  1607. style="
  1608. width: 100%;
  1609. height: 100%;
  1610. border: none;
  1611. "
  1612. :src="
  1613. itemTool.toolData[itemTool.sourceIndex]
  1614. .src
  1615. "
  1616. ></iframe>
  1617. </div>
  1618. <div
  1619. class="wheel"
  1620. v-if="
  1621. itemTool.toolData[itemTool.sourceIndex]
  1622. .type == 8
  1623. "
  1624. style="height: 650px; width: 99%"
  1625. >
  1626. <iframe
  1627. style="
  1628. width: 100%;
  1629. height: 100%;
  1630. border: none;
  1631. "
  1632. :src="
  1633. itemTool.toolData[itemTool.sourceIndex]
  1634. .src
  1635. "
  1636. security="restricted"
  1637. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts"
  1638. ></iframe>
  1639. </div>
  1640. <div
  1641. class="wheel"
  1642. v-if="
  1643. itemTool.toolData[itemTool.sourceIndex]
  1644. .type == 9
  1645. "
  1646. style="height: 650px; width: 99%"
  1647. >
  1648. <pdf
  1649. :pdfUrl="
  1650. itemTool.toolData[itemTool.sourceIndex]
  1651. .url
  1652. "
  1653. style="
  1654. width: 100%;
  1655. height: 100%;
  1656. overflow: auto;
  1657. "
  1658. >
  1659. </pdf>
  1660. </div>
  1661. </div>
  1662. <div
  1663. class="vedioList"
  1664. :class="'vedioList' + itemTaskIndex + toolIndex"
  1665. v-if="itemTool.toolData.length > 0"
  1666. >
  1667. <div class="navTitile">内容列表:</div>
  1668. <div class="navBox">
  1669. <div>
  1670. <div
  1671. class="vedioTimeBox"
  1672. v-for="(
  1673. chapter, cIndex
  1674. ) in itemTool.toolData"
  1675. :key="cIndex + '1'"
  1676. @click="setChapterIndex(itemTool, cIndex)"
  1677. >
  1678. <div
  1679. class="vedioName"
  1680. :class="{
  1681. isClickNav:
  1682. itemTool.sourceIndex == cIndex,
  1683. }"
  1684. >
  1685. {{
  1686. chapter.type == 8
  1687. ? chapter.title
  1688. : chapter.name
  1689. }}
  1690. </div>
  1691. </div>
  1692. </div>
  1693. </div>
  1694. </div>
  1695. </div>
  1696. <div
  1697. style="padding: 10px 0 0"
  1698. v-if="itemTool.toolData[itemTool.sourceIndex]"
  1699. >
  1700. <el-button
  1701. v-if="
  1702. itemTool.toolData[itemTool.sourceIndex]
  1703. .type == 3 ||
  1704. itemTool.toolData[itemTool.sourceIndex]
  1705. .type == 9
  1706. "
  1707. type="primary"
  1708. @click="
  1709. checkFileFull(
  1710. itemTool.toolData[itemTool.sourceIndex]
  1711. .type,
  1712. itemTool.toolData[itemTool.sourceIndex].src
  1713. )
  1714. "
  1715. >全屏查看</el-button
  1716. >
  1717. <el-button
  1718. v-if="
  1719. itemTool.toolData[itemTool.sourceIndex]
  1720. .type == 3 ||
  1721. itemTool.toolData[itemTool.sourceIndex]
  1722. .type == 9
  1723. "
  1724. type="primary"
  1725. @click="
  1726. downloadFile(
  1727. itemTool.toolData[itemTool.sourceIndex].src
  1728. )
  1729. "
  1730. >文件下载</el-button
  1731. >
  1732. <el-button
  1733. v-if="
  1734. itemTool.toolData[itemTool.sourceIndex]
  1735. .type == 8
  1736. "
  1737. type="primary"
  1738. @click="
  1739. openLineS(
  1740. itemTool.toolData[itemTool.sourceIndex].src
  1741. )
  1742. "
  1743. >打开链接
  1744. </el-button>
  1745. <el-button
  1746. v-if="
  1747. itemTool.toolData[itemTool.sourceIndex]
  1748. .type == 6
  1749. "
  1750. type="primary"
  1751. @click="
  1752. checkFileFull(
  1753. itemTool.toolData[itemTool.sourceIndex]
  1754. .type,
  1755. itemTool.toolData[itemTool.sourceIndex]
  1756. )
  1757. "
  1758. >全屏查看</el-button
  1759. >
  1760. <el-button
  1761. type="primary"
  1762. @click="
  1763. editSourceUpadte(itemTaskIndex, toolIndex)
  1764. "
  1765. >添加资源</el-button
  1766. >
  1767. </div>
  1768. </div>
  1769. </div>
  1770. <div
  1771. v-if="itemTool.toolPhoto.length"
  1772. style="margin-top: 10px"
  1773. class="toolimg_box"
  1774. >
  1775. <div
  1776. class="toolimg"
  1777. v-for="(photo, pIndex) in itemTool.toolPhoto"
  1778. :key="pIndex"
  1779. :class="{ answerWidth: photo.type == 3 }"
  1780. >
  1781. <img
  1782. v-if="photo.type == 1"
  1783. :src="photo.content"
  1784. alt=""
  1785. @click="previewImg(photo.content)"
  1786. />
  1787. <div class="answerBg" v-if="photo.type == 3">
  1788. <!-- <div>{{ w.sName }}</div> -->
  1789. <el-tooltip
  1790. class="item"
  1791. effect="light"
  1792. :content="photo.content"
  1793. placement="top"
  1794. >
  1795. <div class="answerContent">
  1796. {{ photo.content }}
  1797. </div>
  1798. </el-tooltip>
  1799. </div>
  1800. <img
  1801. v-if="photo.type == 10"
  1802. src="../../../assets/icon/word2.png"
  1803. alt=""
  1804. @click="openToolFun(48, itemTaskIndex, toolIndex)"
  1805. />
  1806. <img
  1807. v-if="photo.type == 4"
  1808. src="../../../assets/icon/word2.png"
  1809. alt=""
  1810. @click="openFile(photo.content)"
  1811. />
  1812. <img
  1813. v-if="photo.type == 12"
  1814. src="../../../assets/icon/word2.png"
  1815. alt=""
  1816. @click="openToolFun(52, itemTaskIndex, toolIndex)"
  1817. />
  1818. <img
  1819. v-if="photo.type == 14"
  1820. src="../../../assets/icon/word2.png"
  1821. alt=""
  1822. @click="
  1823. openAsk(photo.content, itemTaskIndex, toolIndex)
  1824. "
  1825. />
  1826. <img
  1827. v-if="photo.type == 13"
  1828. src="../../../assets/icon/zip.png"
  1829. alt=""
  1830. @click="downloadFile(photo.content)"
  1831. />
  1832. <img
  1833. v-if="photo.type == 5"
  1834. src="../../../assets/icon/isVideo.png"
  1835. alt=""
  1836. @click="openVideo(photo.content)"
  1837. />
  1838. <img
  1839. class="deleteImg"
  1840. src="../../../assets/deleteworks.png"
  1841. v-if="
  1842. photo.userid == userid &&
  1843. itemTool.tool != 52 &&
  1844. itemTool.tool != 48
  1845. "
  1846. @click.stop="deleteWorks(photo.id)"
  1847. alt
  1848. />
  1849. <div class="comment">
  1850. <div class="worksName">
  1851. <div
  1852. v-if="
  1853. itemTool.tool == 52 || itemTool.tool == 48
  1854. "
  1855. >
  1856. <el-tooltip
  1857. v-if="itemTool.people.length > 1"
  1858. :content="itemTool.people.join('、')"
  1859. placement="top"
  1860. effect="dark"
  1861. >
  1862. <span>{{
  1863. itemTool.people.join("、")
  1864. }}</span>
  1865. </el-tooltip>
  1866. <span v-else>{{
  1867. itemTool.people.join("、")
  1868. }}</span>
  1869. </div>
  1870. <div v-else>{{ photo.username }}</div>
  1871. </div>
  1872. </div>
  1873. </div>
  1874. </div>
  1875. <div
  1876. v-if="
  1877. itemTool.toolPhoto.length && itemTool.tool == 56
  1878. "
  1879. >
  1880. <voteStatic
  1881. :askJSON="itemTool.askJson"
  1882. :checkJson="checkJson[toolIndex]"
  1883. ></voteStatic>
  1884. </div>
  1885. </div>
  1886. <div class="addToolFunBox">
  1887. <div
  1888. class="addToolFun"
  1889. @click="addToolFunD(itemTaskIndex)"
  1890. >
  1891. <div class="addToolImg">
  1892. <img src="../../../assets/icon/add.png" alt />
  1893. </div>
  1894. <div>添加工具</div>
  1895. </div>
  1896. <!-- <div class="addToolFun" @click="addSourceFunD(itemTaskIndex)">
  1897. <div class="addToolImg">
  1898. <img src="../../../assets/icon/add.png" alt />
  1899. </div>
  1900. <div>添加资源</div>
  1901. </div> -->
  1902. </div>
  1903. </div>
  1904. </div>
  1905. <div class="funBlock" style="padding: 0">
  1906. <div class="fold" @click="fold(itemTaskIndex, $event, 1)">
  1907. <div>折叠</div>
  1908. <div class="arrow">
  1909. <img src="../../../assets/icon/fold.png" alt />
  1910. </div>
  1911. </div>
  1912. <div class="fold" @click="fold(itemTaskIndex, $event, 0)">
  1913. <div>展开</div>
  1914. <div class="arrow">
  1915. <img src="../../../assets/icon/expand.png" alt />
  1916. </div>
  1917. </div>
  1918. </div>
  1919. </div>
  1920. <div class="addTaskBorder" @click="addTaskBorder">
  1921. <div>
  1922. <img src="../../../assets/icon/addHw.png" alt />
  1923. <span>添加任务</span>
  1924. </div>
  1925. </div>
  1926. </div>
  1927. </div>
  1928. </div>
  1929. <div class="rightBox" v-if="steps == 4">
  1930. <div class="proMan">
  1931. <div class="title">
  1932. <img src="../../../assets/icon/task.png" alt />任务进展甘特图
  1933. </div>
  1934. <ganChart :Json="unitJson" v-if="steps == 4"></ganChart>
  1935. </div>
  1936. <div class="proMan">
  1937. <div class="title">
  1938. <img src="../../../assets/icon/tupu.png" alt />图谱
  1939. </div>
  1940. <graph :Json="graphJson"></graph>
  1941. </div>
  1942. <div class="proMan">
  1943. <div class="title">
  1944. <img src="../../../assets/icon/proMan.png" alt />负责人看板
  1945. </div>
  1946. <proMan :Json="unitJson" :ManAarray="ManAarray"></proMan>
  1947. </div>
  1948. </div>
  1949. <div
  1950. style="
  1951. width: calc(100% - 20px);
  1952. background: rgb(255, 255, 255);
  1953. border-radius: 10px;
  1954. "
  1955. v-if="steps == 5"
  1956. >
  1957. <div class="basic_box_success">
  1958. <div class="right_img">
  1959. <img src="../../../assets/icon/qr_code.jpg" v-if="org == '150e3120-9195-11ed-b13d-005056b86db5'" alt />
  1960. <img src="../../../assets/icon/right.png" v-else alt />
  1961. </div>
  1962. <div style="font-weight: bold;margin:10px 0" v-if="org == '150e3120-9195-11ed-b13d-005056b86db5'">请参加双师科创成长营活动的成员</div>
  1963. <div style="font-weight: bold;margin:10px 0" v-if="org == '150e3120-9195-11ed-b13d-005056b86db5'">前往腾讯未来教室小程序活动作品展示栏提交您的作品</div>
  1964. <div style="font-weight: bold">创建成功</div>
  1965. <!-- <div>您的项目编号</div>
  1966. <div class="number">{{ number }}</div>-->
  1967. <!-- <div class="success_button">
  1968. <div class="look_course" @click="isNoFinsh">
  1969. 邀请老师协同编辑
  1970. </div>
  1971. <div class="attend_others" @click="goCourse">预览项目</div>
  1972. </div> -->
  1973. </div>
  1974. </div>
  1975. <div class="info_btnBox">
  1976. <button
  1977. class="info_btn"
  1978. v-if="steps == 1"
  1979. @click="
  1980. goTo(
  1981. fpath + '?userid=' + userid + '&oid=' + oid + '&org=' + org + '&role=' + role
  1982. )
  1983. "
  1984. >
  1985. 返回项目
  1986. </button>
  1987. <button
  1988. class="info_btn"
  1989. v-if="steps > 1 && steps != 6"
  1990. @click="lastSteps"
  1991. >
  1992. {{ steps == 5 ? "返回首页" : "上一步" }}
  1993. </button>
  1994. <button class="info_btn" v-if="steps < 5" @click="nextSteps">
  1995. {{
  1996. (steps == 4 && type == 2) || (steps == 3 && type != 2)
  1997. ? "确认上传"
  1998. : "下一步"
  1999. }}
  2000. </button>
  2001. </div>
  2002. </div>
  2003. </div>
  2004. </div>
  2005. <el-dialog
  2006. title="提示"
  2007. :visible.sync="dialogVisible"
  2008. :append-to-body="true"
  2009. width="25%"
  2010. :before-close="handleClose"
  2011. class="dialog_diy2 customWidth"
  2012. >
  2013. <div>请复制该链接邀请协同编辑</div>
  2014. <div>http://www.boomyon.com/index-zhang.com</div>
  2015. <span slot="footer" class="dialog-footer">
  2016. <el-button type="primary">复制链接分享</el-button>
  2017. <el-button @click="dialogVisible = false">取消</el-button>
  2018. </span>
  2019. </el-dialog>
  2020. <el-dialog
  2021. :title="updateBoolean2 ? '查看文档' : '添加文档'"
  2022. :visible.sync="dialogVisible1"
  2023. :append-to-body="true"
  2024. width="25%"
  2025. :before-close="handleClose"
  2026. class="dialog_diy2 customWidth"
  2027. >
  2028. <el-form>
  2029. <el-form-item label="文档标题">
  2030. <el-input
  2031. v-model="tTitle"
  2032. auto-complete="off"
  2033. placeholder="请输入文档标题名..."
  2034. ></el-input>
  2035. </el-form-item>
  2036. <div>文档简介</div>
  2037. <editor-bar v-model="tdetail" @change="change"></editor-bar>
  2038. </el-form>
  2039. <span slot="footer" class="dialog-footer">
  2040. <el-button @click="dialogVisible1 = false">取 消</el-button>
  2041. <el-button type="primary" @click="addWord" v-if="!updateBoolean2"
  2042. >添加</el-button
  2043. >
  2044. <el-button type="primary" @click="upWord" v-else>修 改</el-button>
  2045. </span>
  2046. </el-dialog>
  2047. <el-dialog
  2048. title="添加文档"
  2049. :visible.sync="dialogVisible2"
  2050. :append-to-body="true"
  2051. width="500px"
  2052. :before-close="handleClose"
  2053. class="dialog_diy"
  2054. >
  2055. <el-form>
  2056. <el-form-item label="文档标题">
  2057. <el-input
  2058. v-model="templateC.title"
  2059. auto-complete="off"
  2060. placeholder="请输入文档标题名..."
  2061. ></el-input>
  2062. </el-form-item>
  2063. <div>文档内容</div>
  2064. <editor-bar v-model="cTemplate" @change="change"></editor-bar>
  2065. </el-form>
  2066. <span slot="footer" class="dialog-footer">
  2067. <el-button @click="clearChoose">取 消</el-button>
  2068. <el-button type="primary" @click="wordNext()">确定</el-button>
  2069. </span>
  2070. </el-dialog>
  2071. <el-dialog
  2072. title="添加富文本"
  2073. :visible.sync="dialogVisible6"
  2074. :append-to-body="true"
  2075. width="500px"
  2076. :before-close="handleClose"
  2077. class="dialog_diy"
  2078. >
  2079. <el-form>
  2080. <el-form-item label="文本标题">
  2081. <el-input
  2082. v-model="AttText.title"
  2083. auto-complete="off"
  2084. @input="change2"
  2085. placeholder="请输入文本标题..."
  2086. ></el-input>
  2087. </el-form-item>
  2088. <div>富文本内容</div>
  2089. <editor-bar v-model="AttText.text" @change="change"></editor-bar>
  2090. </el-form>
  2091. <span slot="footer" class="dialog-footer">
  2092. <el-button @click="clearAttText">取 消</el-button>
  2093. <el-button type="primary" @click="isAddOrUpdateAttText">确定</el-button>
  2094. </span>
  2095. </el-dialog>
  2096. <el-dialog
  2097. title="添加链接"
  2098. :visible.sync="dialogVisible7"
  2099. :append-to-body="true"
  2100. width="500px"
  2101. :before-close="handleClose"
  2102. class="dialog_diy lineCss"
  2103. >
  2104. <el-form>
  2105. <el-form-item label="标题" :label-width="formLabelWidth">
  2106. <span>
  2107. <el-input
  2108. placeholder="请输入链接标题"
  2109. clearable
  2110. v-model="lineTitle"
  2111. class="add_input"
  2112. ></el-input>
  2113. </span>
  2114. </el-form-item>
  2115. <el-form-item label="链接" :label-width="formLabelWidth">
  2116. <span>
  2117. <el-input
  2118. placeholder="请输入链接"
  2119. clearable
  2120. v-model="line"
  2121. class="add_input"
  2122. ></el-input>
  2123. </span>
  2124. </el-form-item>
  2125. </el-form>
  2126. <span slot="footer" class="dialog-footer">
  2127. <el-button @click="clearLine">取 消</el-button>
  2128. <el-button type="primary" @click="isAddOrUpdateLine">确定</el-button>
  2129. </span>
  2130. </el-dialog>
  2131. <el-dialog
  2132. title="添加项目成员"
  2133. :visible.sync="dialogVisible3"
  2134. :append-to-body="true"
  2135. width="25%"
  2136. height="80%"
  2137. :before-close="handleClose"
  2138. class="addNewPP customWidth"
  2139. >
  2140. <div class="people">
  2141. <div class="people_top">
  2142. <div class="people_nav">选择成员</div>
  2143. <div class="people_top_right">
  2144. <div class="people_search">
  2145. <el-input
  2146. style="height: 100%"
  2147. placeholder="搜索成员账号"
  2148. v-model="searchPeople"
  2149. ></el-input>
  2150. <div class="search_img" @click="searchStudent">
  2151. <img src="../../../assets/icon/search.png" alt />
  2152. </div>
  2153. </div>
  2154. </div>
  2155. </div>
  2156. <el-checkbox-group v-model="checkboxList" class="people_name">
  2157. <el-checkbox
  2158. v-for="item in studentJuri"
  2159. :key="item.userid"
  2160. :label="item.userid"
  2161. >{{ item.name ? item.name : "暂无学生可选" }}
  2162. </el-checkbox>
  2163. </el-checkbox-group>
  2164. </div>
  2165. <span slot="footer" class="dialog-footer">
  2166. <el-button @click="dialogVisible3 = false">取 消</el-button>
  2167. <el-button type="primary" @click="isAddPP">确定</el-button>
  2168. </span>
  2169. </el-dialog>
  2170. <el-dialog
  2171. title="添加班级"
  2172. :visible.sync="dialogVisibleClass"
  2173. :append-to-body="true"
  2174. width="400px"
  2175. height="80%"
  2176. :before-close="handleClose"
  2177. class="addNewPP"
  2178. >
  2179. <div class="people" style="height: 300px">
  2180. <div class="people_top">
  2181. <div class="people_nav">选择班级</div>
  2182. </div>
  2183. <el-checkbox-group v-model="checkboxList2" class="people_name">
  2184. <div v-for="(item, index) in grade" :key="item.id">
  2185. <el-checkbox :label="item.id">
  2186. {{ item.name ? item.name : "暂无班级可选" }}
  2187. </el-checkbox>
  2188. <div>
  2189. <span>{{ index }}</span>
  2190. </div>
  2191. </div>
  2192. </el-checkbox-group>
  2193. </div>
  2194. <span slot="footer" class="dialog-footer">
  2195. <el-button @click="dialogVisibleClass = false">取 消</el-button>
  2196. <el-button type="primary" @click="isAddClass">确定</el-button>
  2197. </span>
  2198. </el-dialog>
  2199. <el-dialog
  2200. title="添加协同成员"
  2201. :visible.sync="dialogVisibleMember"
  2202. :append-to-body="true"
  2203. width="25%"
  2204. height="80%"
  2205. :before-close="handleClose"
  2206. class="addNewPP customWidth"
  2207. >
  2208. <div class="people">
  2209. <div class="people_top">
  2210. <div class="people_top_right">
  2211. <div class="people_search">
  2212. <el-input
  2213. placeholder="搜索完整的姓名/账号(不含邮箱后缀)"
  2214. v-model="searchTN"
  2215. @keyup.enter.native="getTeacher"
  2216. ></el-input>
  2217. <div class="search_img" @click="getTeacher">
  2218. <img src="../../../assets/icon/search.png" alt />
  2219. </div>
  2220. </div>
  2221. </div>
  2222. <div class="people_nav">选择成员</div>
  2223. </div>
  2224. <div
  2225. class="t_j_box"
  2226. style="
  2227. padding: 20px 0 0 25px;
  2228. width: calc(100% - 55px);
  2229. margin-left: 25px;
  2230. "
  2231. >
  2232. <span>姓名</span>
  2233. <span>身份</span>
  2234. <span>账号</span>
  2235. <span>学校</span>
  2236. </div>
  2237. <el-checkbox-group
  2238. v-model="checkboxList3"
  2239. class="people_name"
  2240. v-if="teacherJuri.length"
  2241. >
  2242. <el-checkbox
  2243. v-for="item in teacherJuri"
  2244. :key="item.userid"
  2245. :label="item.userid"
  2246. >
  2247. <div class="t_j_box">
  2248. <el-tooltip
  2249. placement="top"
  2250. :content="item.name ? item.name : '暂无姓名'"
  2251. >
  2252. <span>{{ item.name ? item.name : "暂无姓名" }}</span>
  2253. </el-tooltip>
  2254. <span>{{ item.type == "1" ? "老师" : "学生" }}</span>
  2255. <el-tooltip placement="top" :content="item.username">
  2256. <span>{{ item.username }}</span>
  2257. </el-tooltip>
  2258. <el-tooltip placement="top" :content="item.school">
  2259. <span>{{ item.school }}</span>
  2260. </el-tooltip>
  2261. </div>
  2262. </el-checkbox>
  2263. </el-checkbox-group>
  2264. <div style="text-align: center; margin-top: 10px" v-else>暂无数据</div>
  2265. </div>
  2266. <div style="margin-top: 10px;">
  2267. <el-pagination
  2268. background
  2269. layout="prev, pager, next"
  2270. :page-size="pageSize"
  2271. :total="total"
  2272. v-if="page && teacherJuri.length"
  2273. style="padding-bottom: 20px"
  2274. @current-change="handleCurrentChange"
  2275. ></el-pagination>
  2276. </div>
  2277. <span slot="footer" class="dialog-footer">
  2278. <el-button @click="dialogVisibleMember = false">取 消</el-button>
  2279. <el-button type="primary" @click="isAddPPTeacher">确定</el-button>
  2280. </span>
  2281. </el-dialog>
  2282. <el-dialog
  2283. title="添加协同者"
  2284. :visible.sync="dialogVisibleTcMember"
  2285. :append-to-body="true"
  2286. width="25%"
  2287. height="80%"
  2288. :before-close="handleClose"
  2289. class="addNewPP customWidth"
  2290. >
  2291. <div class="people">
  2292. <div class="people_top">
  2293. <!-- <div class="people_top_right">
  2294. <div class="people_search">
  2295. <el-input placeholder="搜索成员名称" v-model="searchTN" @keyup.enter.native="getTeacher"></el-input>
  2296. <div class="search_img" @click="getTeacher">
  2297. <img src="../../../assets/icon/search.png" alt />
  2298. </div>
  2299. </div>
  2300. </div> -->
  2301. <div class="people_nav">选择成员</div>
  2302. </div>
  2303. <div
  2304. class="t_j_box"
  2305. style="
  2306. padding: 20px 0 0 25px;
  2307. width: calc(100% - 55px);
  2308. margin-left: 25px;
  2309. "
  2310. >
  2311. <span>姓名</span>
  2312. <span>身份</span>
  2313. <span>账号</span>
  2314. <span>学校</span>
  2315. </div>
  2316. <el-checkbox-group
  2317. v-model="tcMember"
  2318. class="people_name"
  2319. v-if="ManAarray2.length"
  2320. >
  2321. <el-checkbox
  2322. v-for="item in ManAarray2"
  2323. :key="item.userid"
  2324. :label="item.userid"
  2325. >
  2326. <div class="t_j_box">
  2327. <el-tooltip
  2328. placement="top"
  2329. :content="item.name ? item.name : '暂无姓名'"
  2330. >
  2331. <span>{{ item.name ? item.name : "暂无姓名" }}</span>
  2332. </el-tooltip>
  2333. <span>{{ item.type == "1" ? "老师" : "学生" }}</span>
  2334. <el-tooltip placement="top" :content="item.username">
  2335. <span>{{ item.username }}</span>
  2336. </el-tooltip>
  2337. <el-tooltip placement="top" :content="item.school">
  2338. <span>{{ item.school }}</span>
  2339. </el-tooltip>
  2340. </div>
  2341. </el-checkbox>
  2342. </el-checkbox-group>
  2343. <div style="text-align: center; margin-top: 10px" v-else>暂无数据</div>
  2344. </div>
  2345. <span slot="footer" class="dialog-footer">
  2346. <el-button @click="dialogVisibleTcMember = false">取 消</el-button>
  2347. <el-button type="primary" @click="isAddPPTcTeacher">确定</el-button>
  2348. </span>
  2349. </el-dialog>
  2350. <el-dialog
  2351. title="创建问卷"
  2352. :visible.sync="dialogVisible5"
  2353. :append-to-body="true"
  2354. width="800px"
  2355. :before-close="handleClose"
  2356. class="dialog_diy"
  2357. >
  2358. <div>
  2359. <div
  2360. class="a_add_title"
  2361. style="
  2362. display: flex;
  2363. flex-direction: row;
  2364. align-items: center;
  2365. justify-content: center;
  2366. "
  2367. >
  2368. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  2369. <el-input
  2370. v-model="askJson.askTitle"
  2371. placeholder="请输入标题"
  2372. style="width: 400px"
  2373. ></el-input>
  2374. </div>
  2375. <div class="a_addBox">
  2376. <div style="font-size: 16px; color: #c7c7c7">请输入题目内容</div>
  2377. <div
  2378. class="a_add_box"
  2379. v-for="(item1, index1) in askJson.askCount"
  2380. :key="index1"
  2381. >
  2382. <div class="a_add_head">
  2383. <div>
  2384. {{ index1 + 1 + "、" }}
  2385. <el-input
  2386. class="a_add_head_input"
  2387. v-model="askJson.askJson[index1].askstitle"
  2388. placeholder="请输入题目..."
  2389. >
  2390. </el-input>
  2391. </div>
  2392. <div class="a_add_head_div">
  2393. <el-button type="primary" size="small" @click="addAskList()"
  2394. >添加</el-button
  2395. >
  2396. <el-button
  2397. type="primary"
  2398. size="small"
  2399. @click="deleteAskList(index1)"
  2400. v-if="askJson.askCount != 1"
  2401. >删除
  2402. </el-button>
  2403. </div>
  2404. </div>
  2405. <div class="a_add_body">
  2406. <div class="a_add_input">
  2407. <el-input
  2408. v-for="(item2, checkIndex) in askJson.askJson[index1].askItem"
  2409. :key="checkIndex"
  2410. v-model="askJson.askJson[index1].checkList[checkIndex]"
  2411. placeholder="请输入选项..."
  2412. style="width: 150px; margin: 10px 10px 0 0"
  2413. ></el-input>
  2414. </div>
  2415. <div class="a_add_body_div">
  2416. <el-button
  2417. style="margin: 10px 0px 0 0"
  2418. type="primary"
  2419. size="small"
  2420. @click="addcheckList(askJson.askJson[index1])"
  2421. >添加</el-button
  2422. >
  2423. <el-button
  2424. type="primary"
  2425. size="small"
  2426. style="margin: 10px 0 0 10px"
  2427. @click="deletecheckList(askJson.askJson[index1])"
  2428. v-if="askJson.askJson[index1].askItem != 1"
  2429. >删除
  2430. </el-button>
  2431. </div>
  2432. </div>
  2433. </div>
  2434. </div>
  2435. </div>
  2436. <span slot="footer" class="dialog-footer">
  2437. <el-button @click="dialogVisible5 = false">取 消</el-button>
  2438. <el-button type="primary" @click="addAsk">确 定</el-button>
  2439. </span>
  2440. </el-dialog>
  2441. <el-dialog
  2442. title="创建选择题"
  2443. :visible.sync="dialogVisibleChoice"
  2444. :append-to-body="true"
  2445. width="800px"
  2446. :before-close="handleClose"
  2447. class="dialog_diy"
  2448. >
  2449. <div>
  2450. <!-- <div class="a_add_title" style="
  2451. display: flex;
  2452. flex-direction: row;
  2453. align-items: center;
  2454. justify-content: center;
  2455. ">
  2456. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  2457. <el-input v-model="testJson.testTitle" placeholder="请输入标题" style="width: 400px"></el-input>
  2458. </div> -->
  2459. <div class="a_addBox">
  2460. <div style="font-size: 16px; color: #c7c7c7">请输入题目内容</div>
  2461. <div
  2462. class="a_add_box"
  2463. v-for="(item1, index1) in testJson.testCount"
  2464. :key="index1"
  2465. >
  2466. <div class="a_add_checkType">
  2467. <span
  2468. :class="{ active: testJson.testJson[index1].type == '1' }"
  2469. @click="checkTestType('1', testJson.testJson[index1])"
  2470. >单选题</span
  2471. >
  2472. <span
  2473. :class="{ active: testJson.testJson[index1].type == '2' }"
  2474. @click="checkTestType('2', testJson.testJson[index1])"
  2475. >多选题</span
  2476. >
  2477. </div>
  2478. <div class="a_add_head">
  2479. <div>
  2480. {{ index1 + 1 + "、" }}
  2481. <el-input
  2482. class="a_add_head_input"
  2483. v-model="testJson.testJson[index1].teststitle"
  2484. placeholder="请输入题目..."
  2485. >
  2486. </el-input>
  2487. </div>
  2488. <div class="a_add_head_div">
  2489. <el-button type="primary" size="small" @click="addTestList()"
  2490. >添加</el-button
  2491. >
  2492. <el-button
  2493. type="primary"
  2494. size="small"
  2495. @click="deleteTestList(index1)"
  2496. v-if="testJson.testCount != 1"
  2497. >删除
  2498. </el-button>
  2499. </div>
  2500. </div>
  2501. <div class="a_add_body">
  2502. <div class="a_add_input a_add_input_choice">
  2503. <el-radio-group
  2504. v-model="testJson.testJson[index1].answer"
  2505. v-if="testJson.testJson[index1].type == 1"
  2506. >
  2507. <el-radio
  2508. v-for="(item2, checkIndex) in testJson.testJson[index1]
  2509. .testItem"
  2510. :key="checkIndex"
  2511. :label="checkIndex"
  2512. >
  2513. <el-input
  2514. v-model="testJson.testJson[index1].checkList[checkIndex]"
  2515. placeholder="请输入选项..."
  2516. style="width: 300px; margin-right: 10px"
  2517. ></el-input>
  2518. </el-radio>
  2519. </el-radio-group>
  2520. <el-checkbox-group
  2521. v-model="testJson.testJson[index1].answer"
  2522. v-if="testJson.testJson[index1].type == '2'"
  2523. >
  2524. <el-checkbox
  2525. v-for="(item2, checkIndex) in testJson.testJson[index1]
  2526. .testItem"
  2527. :key="checkIndex"
  2528. :label="checkIndex"
  2529. >
  2530. <el-input
  2531. v-model="testJson.testJson[index1].checkList[checkIndex]"
  2532. placeholder="请输入选项..."
  2533. style="width: 300px; margin-right: 10px"
  2534. ></el-input>
  2535. </el-checkbox>
  2536. </el-checkbox-group>
  2537. </div>
  2538. <div class="a_add_body_div">
  2539. <el-button
  2540. type="primary"
  2541. size="small"
  2542. @click="addTcheckList(testJson.testJson[index1])"
  2543. >添加</el-button
  2544. >
  2545. <el-button
  2546. type="primary"
  2547. size="small"
  2548. @click="deleteTcheckList(testJson.testJson[index1])"
  2549. v-if="testJson.testJson[index1].testItem != 1"
  2550. >删除
  2551. </el-button>
  2552. </div>
  2553. </div>
  2554. </div>
  2555. </div>
  2556. </div>
  2557. <span slot="footer" class="dialog-footer">
  2558. <el-button @click="dialogVisibleChoice = false">取 消</el-button>
  2559. <el-button type="primary" @click="addTest">确 定</el-button>
  2560. </span>
  2561. </el-dialog>
  2562. <el-dialog
  2563. title="添加问答"
  2564. :visible.sync="dialogVisible8"
  2565. :append-to-body="true"
  2566. width="500px"
  2567. :before-close="handleClose"
  2568. class="dialog_diy"
  2569. >
  2570. <div>
  2571. <div
  2572. class="a_add_title"
  2573. style="
  2574. display: flex;
  2575. flex-direction: column;
  2576. align-items: flex-start;
  2577. justify-content: center;
  2578. "
  2579. >
  2580. <div style="margin-bottom: 20px; font-size: 20px">问题:</div>
  2581. <el-input
  2582. v-model="answerQ"
  2583. placeholder="请输入您要问的问题"
  2584. ></el-input>
  2585. </div>
  2586. </div>
  2587. <span slot="footer" class="dialog-footer">
  2588. <el-button @click="dialogVisible8 = false">取 消</el-button>
  2589. <el-button type="primary" @click="addAnswer">确 定</el-button>
  2590. </span>
  2591. </el-dialog>
  2592. <el-dialog
  2593. title="添加问题"
  2594. :visible.sync="dialogVisibleMp3"
  2595. :append-to-body="true"
  2596. width="500px"
  2597. :before-close="handleClose"
  2598. class="dialog_diy"
  2599. >
  2600. <div>
  2601. <div
  2602. class="a_add_title"
  2603. style="
  2604. display: flex;
  2605. flex-direction: column;
  2606. align-items: flex-start;
  2607. justify-content: center;
  2608. "
  2609. >
  2610. <div style="margin-bottom: 20px; font-size: 20px">问题:</div>
  2611. <el-input
  2612. v-model="answerQ"
  2613. placeholder="请输入您想要回答的问题"
  2614. ></el-input>
  2615. </div>
  2616. </div>
  2617. <span slot="footer" class="dialog-footer">
  2618. <el-button @click="dialogVisibleMp3 = false">取 消</el-button>
  2619. <el-button type="primary" @click="addMp3Answer">确 定</el-button>
  2620. </span>
  2621. </el-dialog>
  2622. <el-dialog
  2623. title="上传图片"
  2624. :visible.sync="choosePicVisible"
  2625. :append-to-body="true"
  2626. width="500px"
  2627. :before-close="handleClose"
  2628. class="dialog_diy"
  2629. >
  2630. <div>
  2631. <div class="fileCss" style="padding-top: 20px">
  2632. <div>
  2633. <button class="info_btn" @click="addImg($event)">
  2634. 选择本地文件
  2635. <input
  2636. type="file"
  2637. accept="image/*"
  2638. style="display: none"
  2639. @change="beforeUpload1"
  2640. />
  2641. </button>
  2642. </div>
  2643. <div>
  2644. <el-button
  2645. @click="getAllBanner"
  2646. v-if="isSysPic == false && cover.length == 0"
  2647. >选择系统文件</el-button
  2648. >
  2649. <div class="isSysPic" v-if="isSysPic == true && cover.length > 0">
  2650. <img :src="cover[0].url" alt="" />
  2651. <div class="deletePic" @click="deleteSysPic">
  2652. <img src="../../../assets/icon/delete.png" alt="" />
  2653. </div>
  2654. </div>
  2655. </div>
  2656. </div>
  2657. <div class="fileCss">
  2658. <div>选择本地文件</div>
  2659. <div>选择系统文件</div>
  2660. </div>
  2661. </div>
  2662. <span slot="footer" class="dialog-footer">
  2663. <el-button @click="choosePicVisible = false">取 消</el-button>
  2664. <el-button type="primary" @click="choosePicVisible = false"
  2665. >确 定</el-button
  2666. >
  2667. </span>
  2668. </el-dialog>
  2669. <el-dialog
  2670. title="选择系统文件"
  2671. :visible.sync="sysPicVisible"
  2672. :append-to-body="true"
  2673. width="710px"
  2674. :before-close="handleClose"
  2675. class="dialog_diy"
  2676. >
  2677. <div class="cru_selectBox" style="margin: 0">
  2678. <div
  2679. @click="getChoosePic(1)"
  2680. class="cru_select"
  2681. :class="chooseType == 1 ? 'cru_selected' : ''"
  2682. >
  2683. 绘画
  2684. </div>
  2685. <div
  2686. @click="getChoosePic(2)"
  2687. class="cru_select"
  2688. :class="chooseType == 2 ? 'cru_selected' : ''"
  2689. >
  2690. 科技
  2691. </div>
  2692. <div
  2693. @click="getChoosePic(3)"
  2694. class="cru_select"
  2695. :class="chooseType == 3 ? 'cru_selected' : ''"
  2696. >
  2697. 人文
  2698. </div>
  2699. <div
  2700. @click="getChoosePic(4)"
  2701. class="cru_select"
  2702. :class="chooseType == 4 ? 'cru_selected' : ''"
  2703. >
  2704. 艺术
  2705. </div>
  2706. </div>
  2707. <div class="sysPicBox">
  2708. <div v-for="(sys, sysIndex) in sysPic" :key="sysIndex" class="sysPic">
  2709. <img :src="sys.poster" alt="" @click="chooseSysPic(sys.poster)" />
  2710. </div>
  2711. </div>
  2712. <span slot="footer" class="dialog-footer">
  2713. <el-button @click="sysPicVisible = false">取 消</el-button>
  2714. <el-button type="primary">确 定</el-button>
  2715. </span>
  2716. </el-dialog>
  2717. <el-dialog
  2718. title="选择匹配"
  2719. :visible.sync="dialogVisibleSelect"
  2720. :append-to-body="true"
  2721. width="800px"
  2722. :before-close="handleClose"
  2723. class="dialog_diy dialog_diy3"
  2724. >
  2725. <div v-if="selectJson">
  2726. <div class="select_box1" v-if="selectSteps == 1">
  2727. <div class="select_box1_img">
  2728. <div class="select_box1_title">
  2729. <span>上传题目图片</span
  2730. ><span>提示:请将题目以图片的方式上传</span>
  2731. </div>
  2732. <div class="select_box1_add_img">
  2733. <div
  2734. class="uploadFm"
  2735. @click="addImg($event)"
  2736. v-if="!selectJson.url"
  2737. >
  2738. <input
  2739. type="file"
  2740. accept="image/*"
  2741. style="display: none"
  2742. @change="beforeUploadSelect"
  2743. />
  2744. <img src="../../../assets/icon/addPoster.png" alt="" />
  2745. </div>
  2746. <div class="isSysPic" v-else>
  2747. <img :src="selectJson.url" alt="" />
  2748. <div class="deletePic" @click="deleteSelectPic">
  2749. <img src="../../../assets/icon/delete.png" alt="" />
  2750. </div>
  2751. </div>
  2752. </div>
  2753. </div>
  2754. <div class="select_box1_select">
  2755. <div class="select_box1_title">
  2756. <span>添加选项</span><span>提示:请输入题目选项</span>
  2757. </div>
  2758. <div class="select_box1_select_box">
  2759. <el-input
  2760. v-for="(item2, checkIndex) in selectJson.select"
  2761. :key="checkIndex"
  2762. v-model="selectJson.select[checkIndex]"
  2763. placeholder="请输入选项..."
  2764. style="width: 150px; margin: 10px 10px 0 0"
  2765. ></el-input>
  2766. <div class="select_box1_select_box_add">
  2767. <el-button
  2768. style="margin: 10px 0px 0 0"
  2769. type="primary"
  2770. size="small"
  2771. @click="addSelectList(selectJson)"
  2772. >
  2773. 添加</el-button
  2774. >
  2775. <el-button
  2776. type="primary"
  2777. size="small"
  2778. style="margin: 10px 0 0 0"
  2779. @click="deleteSelectList(selectJson)"
  2780. v-if="selectJson.select && selectJson.select.length > 0"
  2781. >删除</el-button
  2782. >
  2783. </div>
  2784. </div>
  2785. </div>
  2786. </div>
  2787. <div v-if="selectSteps == 2">
  2788. <div class="select_box2">
  2789. <div class="select_box2_title">设置答案</div>
  2790. <div class="select_box2_box">
  2791. <div class="select_box2_img">
  2792. <img :src="selectJson.url" alt="" />
  2793. </div>
  2794. <div class="select_box2_answer">
  2795. <div class="select_answer_title">根据题目选择对应答案</div>
  2796. <div
  2797. class="select_box2_answer_box"
  2798. v-for="(item2, checkIndex) in selectJson.select"
  2799. :key="checkIndex"
  2800. >
  2801. <span>{{ checkIndex + 1 }}、</span>
  2802. <el-select
  2803. v-model="selectJson.answer[checkIndex]"
  2804. placeholder="请选择正确答案"
  2805. >
  2806. <el-option
  2807. v-for="(e, eIndex) in selectJson.select"
  2808. :key="eIndex"
  2809. :label="e"
  2810. :value="eIndex"
  2811. >
  2812. </el-option>
  2813. </el-select>
  2814. </div>
  2815. </div>
  2816. </div>
  2817. </div>
  2818. </div>
  2819. </div>
  2820. <span slot="footer" class="dialog-footer">
  2821. <el-button
  2822. type="primary"
  2823. @click="nextSelectSteps()"
  2824. v-if="selectSteps == 1"
  2825. >下一步</el-button
  2826. >
  2827. <el-button @click="selectSteps--" v-if="selectSteps == 2"
  2828. >上一步</el-button
  2829. >
  2830. <el-button
  2831. type="primary"
  2832. @click="addSelectAnswer"
  2833. v-if="selectSteps == 2"
  2834. >确 定</el-button
  2835. >
  2836. </span>
  2837. </el-dialog>
  2838. <el-dialog
  2839. title="添加评价"
  2840. :visible.sync="dialogVisibleRate"
  2841. :append-to-body="true"
  2842. width="650px"
  2843. :before-close="handleClose"
  2844. class="dialog_diy"
  2845. >
  2846. <div style="background: #fff; padding: 15px; box-sizing: border-box">
  2847. <div style="font-size: 18px; color: #a9a9a9">请输入学生评价指标:</div>
  2848. <div class="pjCss" style="width: 100%">
  2849. <div
  2850. v-if="rateJson.length"
  2851. class="elist_input"
  2852. style="height: 360px; overflow: auto"
  2853. >
  2854. <div
  2855. v-for="(eItem, eIndex) in rateJson"
  2856. :key="eIndex"
  2857. class="elist_input_box"
  2858. >
  2859. <span style="min-width: 100px; text-align: right"
  2860. >学生评价指标:</span
  2861. >
  2862. <input
  2863. type="input"
  2864. v-model="eItem.value"
  2865. placeholder="填写评价名称"
  2866. />
  2867. <div class="remove" @click="deletRateList(eIndex)"></div>
  2868. <div style="width: 100%; display: flex">
  2869. <span style="min-width: 100px; text-align: right"
  2870. >评星等级:</span
  2871. >
  2872. <el-rate v-model="eItem.score" disabled></el-rate>
  2873. </div>
  2874. <div class="elist_inptu_text" style="align-items: flex-start">
  2875. <span style="min-width: 100px; text-align: right">描述:</span>
  2876. <textarea
  2877. class="rate_textarea"
  2878. :rows="3"
  2879. v-model="eItem.detail"
  2880. placeholder="填写评价描述"
  2881. ></textarea>
  2882. </div>
  2883. </div>
  2884. </div>
  2885. <div class="addToolFunBox">
  2886. <div class="addToolFun" @click="addRateList()">
  2887. <div class="addToolImg">
  2888. <img src="../../../assets/icon/add.png" alt />
  2889. </div>
  2890. <div>添加</div>
  2891. </div>
  2892. </div>
  2893. </div>
  2894. </div>
  2895. <span slot="footer" class="dialog-footer">
  2896. <el-button @click="dialogVisibleRate = false">取 消</el-button>
  2897. <el-button type="primary" @click="addRateAnswer">确 定</el-button>
  2898. </span>
  2899. </el-dialog>
  2900. <el-dialog
  2901. title="排序设置"
  2902. :visible.sync="dialogVisibleSentence"
  2903. :append-to-body="true"
  2904. width="1000px"
  2905. :before-close="handleClose"
  2906. class="dialog_diy dialog_diy3"
  2907. >
  2908. <div>
  2909. <div class="sentenBox">
  2910. <div class="addSen" @click="addSt">添加题目</div>
  2911. <div
  2912. v-for="(st, stIndex) in sentenceList"
  2913. :key="stIndex"
  2914. style="padding-bottom: 20px"
  2915. >
  2916. <div class="sentenTopBox">
  2917. <div class="sentenTop">
  2918. <div>题目设置</div>
  2919. <div>
  2920. <el-input
  2921. placeholder="请输入卡片内容"
  2922. v-model="st.sentenceTitle"
  2923. ></el-input>
  2924. </div>
  2925. <div @click="addSen(stIndex)">添加</div>
  2926. </div>
  2927. <div
  2928. class="remove1"
  2929. v-if="sentenceList.length > 1"
  2930. @click="deleteSentence(stIndex)"
  2931. ></div>
  2932. </div>
  2933. <div class="cardList">
  2934. <div v-if="st.addSentence.length > 0" class="cardBox">
  2935. <div
  2936. class="isCard"
  2937. v-for="(s, sIndex) in st.addSentence"
  2938. :key="sIndex"
  2939. @click="setRightAnswer(s, stIndex, sIndex)"
  2940. >
  2941. <el-tooltip
  2942. class="item"
  2943. effect="light"
  2944. :content="s"
  2945. placement="top"
  2946. >
  2947. <div>{{ s }}</div>
  2948. </el-tooltip>
  2949. <div
  2950. class="deleteWord"
  2951. @click.stop="deleteS(s, stIndex, sIndex)"
  2952. >
  2953. <img src="../../../assets/icon/delete.png" alt="" />
  2954. </div>
  2955. </div>
  2956. </div>
  2957. <div class="card">
  2958. <img
  2959. src="../../../assets/icon/conSentences/noTitle.png"
  2960. alt=""
  2961. />
  2962. </div>
  2963. </div>
  2964. <div class="rightCardBox">
  2965. <div>正确顺序</div>
  2966. <div class="rightCardList">
  2967. <div v-if="st.rightAnswer.length > 0" class="cardBox">
  2968. <div
  2969. v-for="(r, rIndex) in st.rightAnswer"
  2970. :key="rIndex"
  2971. class="cardCss"
  2972. >
  2973. <div
  2974. class="isCard1"
  2975. @click="returnCard(r, stIndex, rIndex)"
  2976. >
  2977. <el-tooltip
  2978. class="item"
  2979. effect="light"
  2980. :content="r"
  2981. placement="top"
  2982. >
  2983. <div>{{ r }}</div>
  2984. </el-tooltip>
  2985. </div>
  2986. <div>{{ rIndex + 1 }}</div>
  2987. </div>
  2988. </div>
  2989. <div class="card" v-if="st.rightAnswer.length == 0">
  2990. <img
  2991. src="../../../assets/icon/conSentences/noAnswer.png"
  2992. alt=""
  2993. />
  2994. </div>
  2995. </div>
  2996. </div>
  2997. </div>
  2998. </div>
  2999. </div>
  3000. <span slot="footer" class="dialog-footer">
  3001. <el-button @click="dialogVisibleSentence = false">取 消</el-button>
  3002. <el-button type="primary" @click="addSentenceTool">确 定</el-button>
  3003. </span>
  3004. </el-dialog>
  3005. <el-dialog
  3006. title="添加表格"
  3007. :visible.sync="dialogVisibleTable"
  3008. :append-to-body="true"
  3009. width="95%"
  3010. :before-close="handleClose"
  3011. class="dialog_diy"
  3012. >
  3013. <el-form>
  3014. <!-- <el-form-item label="文本标题">
  3015. <el-input v-model="AttText.title" auto-complete="off" @input="change2" placeholder="请输入文本标题..."></el-input>
  3016. </el-form-item> -->
  3017. <div>表格内容</div>
  3018. <Table
  3019. v-model="tableJson.text"
  3020. @change="change"
  3021. v-if="dialogVisibleTable"
  3022. ></Table>
  3023. </el-form>
  3024. <span slot="footer" class="dialog-footer">
  3025. <el-button @click="dialogVisibleTable = false">取 消</el-button>
  3026. <el-button type="primary" @click="addTableJson">确定</el-button>
  3027. </span>
  3028. </el-dialog>
  3029. <el-dialog
  3030. title="添加表格"
  3031. :visible.sync="dialogVisibleTable1"
  3032. :append-to-body="true"
  3033. width="95%"
  3034. :before-close="handleClose"
  3035. class="dialog_diy"
  3036. >
  3037. <el-form>
  3038. <!-- <el-form-item label="文本标题">
  3039. <el-input v-model="AttText.title" auto-complete="off" @input="change2" placeholder="请输入文本标题..."></el-input>
  3040. </el-form-item> -->
  3041. <div>表格内容</div>
  3042. <Table
  3043. v-model="tableJson.text"
  3044. @change="change"
  3045. v-if="dialogVisibleTable1"
  3046. ></Table>
  3047. </el-form>
  3048. <span slot="footer" class="dialog-footer">
  3049. <el-button @click="dialogVisibleTable1 = false">取 消</el-button>
  3050. <el-button type="primary" @click="addTable">确定</el-button>
  3051. </span>
  3052. </el-dialog>
  3053. <el-dialog
  3054. title="查看表格"
  3055. :visible.sync="dialogVisibleTable2"
  3056. :append-to-body="true"
  3057. width="95%"
  3058. :before-close="handleClose"
  3059. class="dialog_diy"
  3060. >
  3061. <el-form>
  3062. <div
  3063. class="cont"
  3064. v-html="tableJson.text"
  3065. style="line-height: 24px"
  3066. ></div>
  3067. </el-form>
  3068. <span slot="footer" class="dialog-footer">
  3069. <el-button @click="dialogVisibleTable2 = false">关 闭</el-button>
  3070. </span>
  3071. </el-dialog>
  3072. <el-dialog
  3073. title="分组设置"
  3074. :visible.sync="dialogVisibleGroup"
  3075. :append-to-body="true"
  3076. width="650px"
  3077. :before-close="handleClose"
  3078. class="dialog_diy"
  3079. >
  3080. <div class="groupBox">
  3081. <div v-if="groupJson.group" class="groupContent">
  3082. <div class="groupTitle">请设置小组数量</div>
  3083. <div
  3084. v-for="(item, index) in groupJson.group"
  3085. :key="index"
  3086. class="groupName"
  3087. >
  3088. <span class="groupn">组{{ index + 1 }}名称:</span>
  3089. <el-input
  3090. v-model="item.name"
  3091. placeholder="请输入名称..."
  3092. style="width: 250px"
  3093. ></el-input>
  3094. <div class="groupBtn">
  3095. <el-button type="primary" size="small" @click="addGroup(index)">
  3096. 添加</el-button
  3097. >
  3098. <el-button
  3099. type="primary"
  3100. size="small"
  3101. @click="deleteGroup(index)"
  3102. v-if="groupJson.group && groupJson.group.length > 1"
  3103. >删除</el-button
  3104. >
  3105. </div>
  3106. </div>
  3107. </div>
  3108. <div class="groupContent">
  3109. <div class="groupTitle">请设置每组人数数量</div>
  3110. <!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
  3111. style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
  3112. <el-input-number
  3113. v-model="groupJson.number"
  3114. :controls="false"
  3115. :min="2"
  3116. :max="10"
  3117. placeholder="2-10人以内"
  3118. ></el-input-number>
  3119. </div>
  3120. </div>
  3121. <span slot="footer" class="dialog-footer">
  3122. <el-button @click="dialogVisibleGroup = false">取 消</el-button>
  3123. <el-button type="primary" @click="addGroupJson">确定</el-button>
  3124. </span>
  3125. </el-dialog>
  3126. <el-dialog
  3127. title="添加工具"
  3128. :visible.sync="dialogVisibleTool"
  3129. :append-to-body="true"
  3130. width="600px"
  3131. :before-close="handleClose"
  3132. class="dialog_diy addToolsDia"
  3133. >
  3134. <div class="toolChoose" style="padding: 0 0 30px 30px">
  3135. <div class="tools">
  3136. <div
  3137. class="leftTools"
  3138. style="
  3139. width: 95%;
  3140. padding: 0 0 15px 0;
  3141. border-bottom: 1px solid #efefef;
  3142. margin-bottom: 15px;
  3143. "
  3144. >
  3145. <div style="min-height: 163px">
  3146. <div class="toolSort">
  3147. <div class="tool">
  3148. <div class="whiteBIcon" @click="addToolFun(1)">
  3149. <img
  3150. src="../../../assets/icon/secondToolList/whiteBoard.png"
  3151. alt
  3152. />
  3153. <div style="margin: 5px 0">电子白板</div>
  3154. </div>
  3155. </div>
  3156. <div class="tool" v-if="false">
  3157. <div class="whiteBIcon" @click="addToolFun(6)">
  3158. <img
  3159. src="../../../assets/icon/secondToolList/doc.png"
  3160. alt
  3161. />
  3162. <div style="margin: 5px 0">协同文档</div>
  3163. </div>
  3164. </div>
  3165. <div class="tool">
  3166. <div class="whiteBIcon" @click="addToolFun(3)">
  3167. <img
  3168. src="../../../assets/icon/secondToolList/mindMapping.png"
  3169. alt
  3170. />
  3171. <div style="margin: 5px 0">思维导图</div>
  3172. </div>
  3173. </div>
  3174. <div class="tool">
  3175. <div class="whiteBIcon" @click="addToolFun(48)">
  3176. <img
  3177. src="../../../assets/icon/fourthToolList/table.png"
  3178. alt
  3179. />
  3180. <div style="margin: 5px 0">表格</div>
  3181. </div>
  3182. </div>
  3183. <!-- <div class="tool">
  3184. <div class="whiteBIcon" @click="addToolFun(15)">
  3185. <img src="../../../assets/icon/thirdToolList/answer.png" alt />
  3186. <div style="margin: 5px 0">问答</div>
  3187. </div>
  3188. </div> -->
  3189. <div class="tool">
  3190. <div class="whiteBIcon" @click="addToolFun(52)">
  3191. <img
  3192. src="../../../assets/icon/fourthToolList/text.png"
  3193. alt
  3194. />
  3195. <div style="margin: 5px 0">文档</div>
  3196. </div>
  3197. </div>
  3198. <div class="tool">
  3199. <div class="whiteBIcon" @click="addToolFun(51)">
  3200. <img
  3201. src="../../../assets/icon/fourthToolList/upload.png"
  3202. alt
  3203. />
  3204. <div style="margin: 5px 0">资源库</div>
  3205. </div>
  3206. </div>
  3207. <!-- <div class="tool">
  3208. <div class="whiteBIcon" @click="addToolFun(53)">
  3209. <img src="../../../assets/icon/fourthToolList/file.png" alt />
  3210. <div style="margin: 5px 0">文件上传</div>
  3211. </div>
  3212. </div> -->
  3213. <div class="tool">
  3214. <div class="whiteBIcon" @click="addToolFun(54)">
  3215. <img
  3216. src="../../../assets/icon/fourthToolList/photo.png"
  3217. alt
  3218. />
  3219. <div style="margin: 5px 0">拍照</div>
  3220. </div>
  3221. </div>
  3222. <div class="tool">
  3223. <div class="whiteBIcon" @click="addToolFun(55)">
  3224. <img
  3225. src="../../../assets/icon/fourthToolList/zip.png"
  3226. alt
  3227. />
  3228. <div style="margin: 5px 0">文件</div>
  3229. </div>
  3230. </div>
  3231. <div class="tool">
  3232. <div class="whiteBIcon" @click="addToolFun(56)">
  3233. <img src="../../../assets/icon/thirdToolList/ask.png" alt />
  3234. <div style="margin: 5px 0">投票</div>
  3235. </div>
  3236. </div>
  3237. <div class="tool">
  3238. <div class="whiteBIcon" @click="addToolFun(57)">
  3239. <img src="../../../assets/icon/fourthToolList/cocopi.png" alt />
  3240. <div style="margin: 5px 0">CocoPi</div>
  3241. </div>
  3242. </div>
  3243. </div>
  3244. </div>
  3245. </div>
  3246. </div>
  3247. </div>
  3248. <!-- <span slot="footer" class="dialog-footer">
  3249. <el-button @click="dialogVisible4 = false">取 消</el-button>
  3250. <el-button type="primary" @click="addChaptersDataTools">确定</el-button>
  3251. </span> -->
  3252. </el-dialog>
  3253. <el-dialog
  3254. title="添加资源"
  3255. :visible.sync="dialogVisibleSource"
  3256. :append-to-body="true"
  3257. width="700px"
  3258. :before-close="handleClose"
  3259. class="dialog_diy addToolsDia"
  3260. >
  3261. <div class="toolChoose">
  3262. <div class="tools">
  3263. <div class="leftTools" style="width: 100%">
  3264. <div>
  3265. <div class="basic_box">
  3266. <div>
  3267. <div
  3268. class="add_chapters_box"
  3269. v-if="sourcesData.length == 0"
  3270. style="height: 185px"
  3271. ></div>
  3272. <div
  3273. v-else
  3274. class="add_chapters_box"
  3275. style="display: flex; flex-direction: column"
  3276. >
  3277. <div
  3278. class="chapter_upload"
  3279. v-for="(item, index) in sourcesData"
  3280. :key="index"
  3281. @click="getChapterData2($event, index, item.type)"
  3282. >
  3283. <div class="chapter_upload_t" style="width: 100%"></div>
  3284. <div
  3285. class="chapter_upload_o"
  3286. style="
  3287. position: relative;
  3288. display: flex;
  3289. align-items: center;
  3290. "
  3291. >
  3292. <div
  3293. class="chapter_upload_l"
  3294. style="padding: 1px 0 0 10px"
  3295. >
  3296. <div
  3297. v-if="item.type == 2"
  3298. class="chapter_upload_l_i1"
  3299. ></div>
  3300. <div
  3301. v-if="
  3302. item.type == 3 ||
  3303. item.type == 9 ||
  3304. item.type == 6 ||
  3305. item.type == 7
  3306. "
  3307. class="chapter_upload_l_i5"
  3308. style="margin-left: 1px"
  3309. ></div>
  3310. <div
  3311. v-if="item.type == 8"
  3312. class="chapter_upload_l_i8"
  3313. style="margin-left: 1px"
  3314. ></div>
  3315. </div>
  3316. <div
  3317. class="chapter_upload_ic"
  3318. style="
  3319. cursor: pointer;
  3320. position: absolute;
  3321. width: 45px;
  3322. right: 0;
  3323. top: 0;
  3324. "
  3325. >
  3326. <div class="chapter_upload_ic_l"></div>
  3327. <div
  3328. class="chapter_upload_ic_r"
  3329. style="position: absolute"
  3330. @click.stop="deleteChapterData2($event, index)"
  3331. >
  3332. <div></div>
  3333. </div>
  3334. </div>
  3335. <div class="chapter_upload_n">
  3336. <input
  3337. v-if="
  3338. item.type == 2 ||
  3339. item.type == 3 ||
  3340. item.type == 9 ||
  3341. item.type == 7
  3342. "
  3343. :placeholder="item.name"
  3344. @change="updataVideoT2($event, index)"
  3345. style="
  3346. border: none;
  3347. outline: none;
  3348. width: 80%;
  3349. minwidth: 215px;
  3350. z-index: 99;
  3351. font-size: 14px;
  3352. white-space: nowrap;
  3353. overflow: hidden;
  3354. text-overflow: ellipsis;
  3355. "
  3356. />
  3357. <input
  3358. :placeholder="item.name"
  3359. v-if="item.type == 6"
  3360. style="
  3361. border: none;
  3362. outline: none;
  3363. width: 80%;
  3364. white-space: nowrap;
  3365. overflow: hidden;
  3366. text-overflow: ellipsis;
  3367. "
  3368. readonly="true"
  3369. @click="selectAttText2(index)"
  3370. />
  3371. <input
  3372. :placeholder="item.title ? item.title : '链接'"
  3373. v-if="item.type == 8"
  3374. style="
  3375. border: none;
  3376. outline: none;
  3377. width: 80%;
  3378. white-space: nowrap;
  3379. overflow: hidden;
  3380. text-overflow: ellipsis;
  3381. "
  3382. readonly="true"
  3383. @click="selectLine2(index)"
  3384. />
  3385. <div class="chapter_upload_ud" style="z-index: 99">
  3386. <div
  3387. class="chapter_upload_up"
  3388. @click="upCd2($event, index)"
  3389. ></div>
  3390. <div
  3391. class="chapter_upload_down"
  3392. @click="downCd2($event, index)"
  3393. ></div>
  3394. </div>
  3395. </div>
  3396. </div>
  3397. </div>
  3398. </div>
  3399. </div>
  3400. <div class="add_info_box">
  3401. <button class="info_btn" @click="addImg($event)">
  3402. 添加视频
  3403. <!-- capture="camera" -->
  3404. <input
  3405. type="file"
  3406. accept="video/mp4, video/quicktime, video/x-msvideo"
  3407. style="display: none"
  3408. v-if="inputShow"
  3409. @change="beforeUpload3($event, 2)"
  3410. />
  3411. </button>
  3412. <button class="info_btn" @click="addImg($event)">
  3413. 添加附件
  3414. <input
  3415. type="file"
  3416. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  3417. style="display: none"
  3418. v-if="inputShow"
  3419. @change="beforeUpload3($event, 3)"
  3420. />
  3421. </button>
  3422. <button class="info_btn" @click="addAttText()">
  3423. 添加图文
  3424. </button>
  3425. <button class="info_btn" @click="openLine()">添加链接</button>
  3426. </div>
  3427. <div v-if="proVisible" class="mask">
  3428. <div class="progressBox">
  3429. <!-- <div id="closePro" class="closeCss">
  3430. <img src="../../../assets/icon/close.png" alt />
  3431. </div> -->
  3432. <div class="lbox">
  3433. <img src="../../../assets/loading.gif" />上传中,请稍后
  3434. </div>
  3435. <div style="margin-bottom: 10px">
  3436. <span>{{ isFinishSize }}M</span> /
  3437. <span>{{ isAllSize }}M</span>
  3438. </div>
  3439. <el-progress
  3440. :text-inside="true"
  3441. :stroke-width="20"
  3442. :percentage="progress"
  3443. style="width: 80%"
  3444. ></el-progress>
  3445. </div>
  3446. </div>
  3447. </div>
  3448. </div>
  3449. </div>
  3450. </div>
  3451. </div>
  3452. <span slot="footer" class="dialog-footer">
  3453. <el-button @click="dialogVisibleSource = false">取 消</el-button>
  3454. <el-button type="primary" @click="addSourceData">确定</el-button>
  3455. </span>
  3456. </el-dialog>
  3457. <el-dialog
  3458. title="查看文档"
  3459. :visible.sync="fullDialogVisible"
  3460. :append-to-body="true"
  3461. width="100%"
  3462. :before-close="handleClose"
  3463. :show-close="false"
  3464. class="dialog_diy full_diy"
  3465. :class="{ full_diy2: fulltype == 9 }"
  3466. >
  3467. <div slot="title" class="header-title">
  3468. <div style="color: #fff">查看文档</div>
  3469. <div
  3470. @click="fullDialogVisible = false"
  3471. style="
  3472. cursor: pointer;
  3473. position: absolute;
  3474. top: 20px;
  3475. right: 20px;
  3476. color: #fff;
  3477. "
  3478. >
  3479. 退出全屏
  3480. </div>
  3481. </div>
  3482. <div style="height: 100%">
  3483. <iframe
  3484. v-if="fulltype == 3"
  3485. style="width: 100%; height: 100%; border: none"
  3486. :src="fullUrl"
  3487. ></iframe>
  3488. <pdf
  3489. v-else-if="fulltype == 9"
  3490. :pdfUrl="fullUrl"
  3491. style="width: 100%; height: 100%; overflow: auto"
  3492. >
  3493. </pdf>
  3494. <div
  3495. class="wheel"
  3496. v-if="fulltype == 6"
  3497. style="
  3498. box-shadow: 0 0 6px 1px #f2f2f2;
  3499. width: 100%;
  3500. background: #f1f1f1;
  3501. "
  3502. >
  3503. <div class="texttitle" style="width: 100%; box-sizing: border-box">
  3504. 查看文档
  3505. </div>
  3506. <el-form class="textBox" style="height: 90%">
  3507. <el-form-item class="textTitle">
  3508. <div style="font-size: 22px; max-height: 100px; overflow: auto">
  3509. {{ fullUrl.name }}
  3510. </div>
  3511. </el-form-item>
  3512. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  3513. <div
  3514. v-html="fullUrl.url"
  3515. class="textContent"
  3516. style="height: auto"
  3517. ></div>
  3518. </el-form>
  3519. </div>
  3520. </div>
  3521. <!-- <div slot="footer">
  3522. <el-button @click="fullDialogVisible = false">关 闭</el-button>
  3523. </div> -->
  3524. </el-dialog>
  3525. <el-dialog
  3526. title="问答"
  3527. :visible.sync="answerDialogVisible"
  3528. :append-to-body="true"
  3529. width="800px"
  3530. :before-close="handleClose"
  3531. class="dialog_diy"
  3532. >
  3533. <div>
  3534. <div
  3535. style="
  3536. display: flex;
  3537. flex-wrap: nowrap;
  3538. flex-direction: column;
  3539. position: relative;
  3540. "
  3541. >
  3542. <div class="queTop" style="padding: 20px 0 20px 0">
  3543. <div class="question">
  3544. <img src="../../../assets/icon/question.png" alt />
  3545. </div>
  3546. <div class="queTitle">
  3547. <div style="width: 90px; min-width: 90px">提问:</div>
  3548. <div>{{ answerQ }}</div>
  3549. </div>
  3550. </div>
  3551. <div class="ediBottom">
  3552. <textarea
  3553. rows="6"
  3554. class="binfo_input"
  3555. cols
  3556. style="width: 95%; height: 120px"
  3557. v-model="questionAnswer"
  3558. ></textarea>
  3559. </div>
  3560. </div>
  3561. </div>
  3562. <div slot="footer">
  3563. <el-button @click="answerDialogVisible = false">取 消</el-button>
  3564. <el-button type="primary" @click="addQuestion">提 交</el-button>
  3565. </div>
  3566. </el-dialog>
  3567. <el-dialog
  3568. title="文件预览"
  3569. :visible.sync="dialogVisibleFile"
  3570. width="50%"
  3571. :before-close="handleClose"
  3572. class="dialog_diy"
  3573. :class="{ fullStyle: full }"
  3574. >
  3575. <div slot="title" class="header-title">
  3576. <div style="color: #fff">文件预览</div>
  3577. <div style="position: absolute; top: 19px; right: 50px">
  3578. <img
  3579. src="../../../assets/full.png"
  3580. style="height: 16px; cursor: pointer"
  3581. alt=""
  3582. @click="full = !full"
  3583. />
  3584. </div>
  3585. </div>
  3586. <pdf
  3587. v-if="showPDF"
  3588. :pdfUrl="pptImgUrl"
  3589. style="width: 100%; height: 520px; overflow: auto"
  3590. :class="{ fullStyle: full }"
  3591. ></pdf>
  3592. <iframe
  3593. v-else
  3594. :src="pptImgUrl"
  3595. frameborder="0"
  3596. width="100%"
  3597. height="600"
  3598. :class="{ fullStyle: full }"
  3599. ></iframe>
  3600. </el-dialog>
  3601. <el-dialog
  3602. title="添加文档"
  3603. :visible.sync="dialogVisibleText"
  3604. :append-to-body="true"
  3605. width="800px"
  3606. :before-close="handleClose"
  3607. class="dialog_diy"
  3608. >
  3609. <el-form>
  3610. <div>文档内容</div>
  3611. <editor-bar
  3612. v-model="tableJson.text"
  3613. @change="change"
  3614. v-if="dialogVisibleText"
  3615. ></editor-bar>
  3616. </el-form>
  3617. <span slot="footer" class="dialog-footer">
  3618. <el-button @click="dialogVisibleText = false">取 消</el-button>
  3619. <el-button type="primary" @click="addText">确定</el-button>
  3620. </span>
  3621. </el-dialog>
  3622. <el-dialog
  3623. title="上传文档"
  3624. :visible.sync="dialogVisibleText3"
  3625. :append-to-body="true"
  3626. width="800px"
  3627. :before-close="handleClose"
  3628. class="dialog_diy"
  3629. >
  3630. <el-form>
  3631. <div>文档内容</div>
  3632. <EditorBar2
  3633. v-model="tableJson.text"
  3634. @change="change"
  3635. v-if="dialogVisibleText3"
  3636. ></EditorBar2>
  3637. </el-form>
  3638. <span slot="footer" class="dialog-footer">
  3639. <el-button @click="dialogVisibleText3 = false">取 消</el-button>
  3640. <el-button type="primary" @click="addTextJson">确定</el-button>
  3641. </span>
  3642. </el-dialog>
  3643. <el-dialog
  3644. title="查看文档"
  3645. :visible.sync="dialogVisibleText2"
  3646. :append-to-body="true"
  3647. width="800px"
  3648. :before-close="handleClose"
  3649. class="dialog_diy"
  3650. >
  3651. <el-form>
  3652. <div
  3653. class="cont"
  3654. v-html="tableJson.text"
  3655. style="line-height: 24px"
  3656. ></div>
  3657. </el-form>
  3658. <span slot="footer" class="dialog-footer">
  3659. <el-button @click="dialogVisibleText2 = false">关 闭</el-button>
  3660. </span>
  3661. </el-dialog>
  3662. <el-dialog
  3663. title="查看视频"
  3664. :visible.sync="videoVisible"
  3665. :append-to-body="true"
  3666. width="1000px"
  3667. :before-close="handleClose"
  3668. class="dialog_diy1"
  3669. >
  3670. <div class="workd_media" style="height: 100%" v-if="videoDetail.sources">
  3671. <video-player
  3672. class="video-player vjs-custom-skin"
  3673. :playsinline="true"
  3674. :options="videoDetail"
  3675. @play="onPlayerPlay($event)"
  3676. style="width: 100%; height: 100%"
  3677. ></video-player>
  3678. </div>
  3679. <div slot="footer">
  3680. <el-button
  3681. style="background: #409efe; color: #fff"
  3682. @click="(videoVisible = false), (videoDetail = {})"
  3683. >
  3684. 关 闭</el-button
  3685. >
  3686. </div>
  3687. </el-dialog>
  3688. <el-dialog
  3689. title="创建投票"
  3690. :visible.sync="dialogVisibleVote"
  3691. :append-to-body="true"
  3692. width="800px"
  3693. :before-close="handleClose"
  3694. class="dialog_diy"
  3695. >
  3696. <div>
  3697. <div
  3698. class="a_add_title"
  3699. style="
  3700. display: flex;
  3701. flex-direction: row;
  3702. align-items: center;
  3703. justify-content: center;
  3704. "
  3705. >
  3706. <div style="margin-right: 20px; font-size: 20px">投票标题:</div>
  3707. <el-input
  3708. v-model="askJson.askTitle"
  3709. placeholder="请输入标题"
  3710. style="width: 400px"
  3711. ></el-input>
  3712. </div>
  3713. <div class="a_addBox">
  3714. <div style="font-size: 16px; color: #c7c7c7">请输入投票内容</div>
  3715. <div
  3716. class="a_add_box"
  3717. v-for="(item1, index1) in askJson.askCount"
  3718. :key="index1"
  3719. >
  3720. <div class="a_add_head">
  3721. <div>
  3722. {{ index1 + 1 + "、" }}
  3723. <el-input
  3724. class="a_add_head_input"
  3725. v-model="askJson.askJson[index1].askstitle"
  3726. placeholder="请输入内容..."
  3727. >
  3728. </el-input>
  3729. </div>
  3730. <div class="a_add_head_div">
  3731. <el-button type="primary" size="small" @click="addAskList()"
  3732. >添加</el-button
  3733. >
  3734. <el-button
  3735. type="primary"
  3736. size="small"
  3737. @click="deleteAskList(index1)"
  3738. v-if="askJson.askCount != 1"
  3739. >删除
  3740. </el-button>
  3741. </div>
  3742. </div>
  3743. <div class="a_add_body">
  3744. <div class="a_add_input">
  3745. <el-input
  3746. v-for="(item2, checkIndex) in askJson.askJson[index1].askItem"
  3747. :key="checkIndex"
  3748. v-model="askJson.askJson[index1].checkList[checkIndex]"
  3749. placeholder="请输入投票选项..."
  3750. style="width: 150px; margin: 10px 10px 0 0"
  3751. ></el-input>
  3752. </div>
  3753. <div class="a_add_body_div">
  3754. <el-button
  3755. style="margin: 10px 0px 0 0"
  3756. type="primary"
  3757. size="small"
  3758. @click="addcheckList(askJson.askJson[index1])"
  3759. >添加</el-button
  3760. >
  3761. <el-button
  3762. type="primary"
  3763. size="small"
  3764. style="margin: 10px 0 0 10px"
  3765. @click="deletecheckList(askJson.askJson[index1])"
  3766. v-if="askJson.askJson[index1].askItem != 1"
  3767. >删除
  3768. </el-button>
  3769. </div>
  3770. </div>
  3771. </div>
  3772. </div>
  3773. </div>
  3774. <span slot="footer" class="dialog-footer">
  3775. <el-button @click="dialogVisibleVote = false">取 消</el-button>
  3776. <el-button type="primary" @click="addAsk">确 定</el-button>
  3777. </span>
  3778. </el-dialog>
  3779. <el-dialog
  3780. title="查看投票"
  3781. :visible.sync="dialogVisibleVote2"
  3782. :append-to-body="true"
  3783. width="1000px"
  3784. :before-close="handleClose"
  3785. class="dialog_diy dialog_diy3"
  3786. >
  3787. <div>
  3788. <div
  3789. class="a_add_title"
  3790. style="
  3791. display: flex;
  3792. flex-direction: row;
  3793. align-items: center;
  3794. justify-content: center;
  3795. "
  3796. >
  3797. <div style="margin-right: 20px; font-size: 20px">投票标题:</div>
  3798. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  3799. </div>
  3800. <div class="a_addBox">
  3801. <div style="font-size: 16px; color: #c7c7c7">投票内容</div>
  3802. <div
  3803. class="a_add_box"
  3804. v-for="(item1, index1) in askJson.askCount"
  3805. :key="index1"
  3806. >
  3807. <div class="a_add_head">
  3808. <div style="display: flex">
  3809. {{ index1 + 1 + "、" }}
  3810. <div>{{ askJson.askJson[index1].askstitle }}</div>
  3811. </div>
  3812. <img
  3813. v-if="askJson.askJson[index1].img"
  3814. :src="askJson.askJson[index1].img"
  3815. style="height: 300px; margin-top: 10px; max-width: 100%"
  3816. />
  3817. </div>
  3818. <div class="a_add_body">
  3819. <div class="a_add_input">
  3820. <el-radio-group v-model="radio[index1]">
  3821. <el-radio
  3822. v-for="(item2, checkIndex) in askJson.askJson[index1]
  3823. .checkList"
  3824. :key="checkIndex"
  3825. :label="checkIndex"
  3826. class="redioStyle"
  3827. ><span v-html="item2"></span
  3828. ></el-radio>
  3829. </el-radio-group>
  3830. </div>
  3831. </div>
  3832. </div>
  3833. </div>
  3834. </div>
  3835. <span slot="footer" class="dialog-footer">
  3836. <el-button @click="dialogVisibleVote2 = false">取 消</el-button>
  3837. <el-button type="primary" @click="addStudentAsk">确 定</el-button>
  3838. </span>
  3839. </el-dialog>
  3840. <el-dialog
  3841. title="查看投票"
  3842. :visible.sync="dialogVisibleVote3"
  3843. :append-to-body="true"
  3844. width="1000px"
  3845. :before-close="handleClose"
  3846. class="dialog_diy dialog_diy3"
  3847. >
  3848. <div>
  3849. <div
  3850. class="a_add_title"
  3851. style="
  3852. display: flex;
  3853. flex-direction: row;
  3854. align-items: center;
  3855. justify-content: center;
  3856. "
  3857. >
  3858. <div style="margin-right: 20px; font-size: 20px">投票标题:</div>
  3859. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  3860. </div>
  3861. <div class="a_addBox">
  3862. <div style="font-size: 16px; color: #c7c7c7">投票内容</div>
  3863. <div
  3864. class="a_add_box"
  3865. v-for="(item1, index1) in askJson.askCount"
  3866. :key="index1"
  3867. >
  3868. <div class="a_add_head">
  3869. <div style="display: flex">
  3870. {{ index1 + 1 + "、" }}
  3871. <div>{{ askJson.askJson[index1].askstitle }}</div>
  3872. </div>
  3873. <img
  3874. v-if="askJson.askJson[index1].img"
  3875. :src="askJson.askJson[index1].img"
  3876. style="height: 300px; margin-top: 10px; max-width: 100%"
  3877. />
  3878. </div>
  3879. <div class="a_add_body">
  3880. <div class="a_add_input">
  3881. <el-radio-group v-model="radio[index1]">
  3882. <el-radio
  3883. v-for="(item2, checkIndex) in askJson.askJson[index1]
  3884. .checkList"
  3885. :key="checkIndex"
  3886. :label="checkIndex"
  3887. disabled
  3888. class="redioStyle"
  3889. ><span v-html="item2"></span
  3890. ></el-radio>
  3891. </el-radio-group>
  3892. </div>
  3893. </div>
  3894. </div>
  3895. </div>
  3896. </div>
  3897. <span slot="footer" class="dialog-footer">
  3898. <el-button @click="dialogVisibleVote3 = false">关 闭</el-button>
  3899. </span>
  3900. </el-dialog>
  3901. </div>
  3902. </template>
  3903. <script>
  3904. import "../../../common/aws-sdk-2.235.1.min.js";
  3905. import $ from "jquery";
  3906. import EditorBar from "../../../components/tools/wangEnduit";
  3907. import EditorBar2 from "../../../components/tools/wangEnduit";
  3908. import Table from "../../../components/tools/table";
  3909. import voteStatic from "../components/voteStatic.vue";
  3910. import TextT from "../../../components/tools/text";
  3911. import Mind from "../../tools/jsmind2";
  3912. import Sunburst from "../../tools/sunburst";
  3913. import SeeBoard from "../../tools/seeBoard";
  3914. import proMan from "../components/proMan.vue";
  3915. import ganChart from "../components/ganChart.vue";
  3916. import graph from "../components/graph.vue";
  3917. import pdf from "../components/vpdf";
  3918. import * as imageConversion from "image-conversion";
  3919. import courseDetailVue from "../courseDetail.vue";
  3920. export default {
  3921. components: {
  3922. EditorBar,
  3923. EditorBar2,
  3924. Mind,
  3925. Sunburst,
  3926. SeeBoard,
  3927. Table,
  3928. proMan,
  3929. ganChart,
  3930. graph,
  3931. pdf,
  3932. TextT,
  3933. voteStatic,
  3934. },
  3935. data() {
  3936. return {
  3937. checkAll: false,
  3938. chooseType: 1,
  3939. checkedCities: [],
  3940. isIndeterminate: true,
  3941. isSysPic: false,
  3942. steps: 1,
  3943. nbOrder: 0,
  3944. courseId: "",
  3945. chapToolsType: 0,
  3946. chapTools: [
  3947. {
  3948. tools: [],
  3949. toolDetail: "",
  3950. },
  3951. ],
  3952. line: "",
  3953. lineTitle: "",
  3954. sysPic: [],
  3955. sentenceList: [
  3956. {
  3957. sentenceTitle: "",
  3958. addSentence: [],
  3959. rightAnswer: [],
  3960. },
  3961. ],
  3962. isPushTitleList: [],
  3963. lineCount: 0,
  3964. lineType: 0,
  3965. chapCount: 0,
  3966. courseName: "",
  3967. isTeacherSee: false,
  3968. courseText: "",
  3969. formLabelWidth: "100px",
  3970. choosePicVisible: false,
  3971. sysPicVisible: false,
  3972. uploadLoading1: false,
  3973. noneBtnImg: false,
  3974. updateBoolean2: false,
  3975. unitIndex: 0,
  3976. taskCount: 0,
  3977. dialogVisible: false,
  3978. dialogVisible1: false,
  3979. dialogVisible2: false,
  3980. dialogVisible3: false,
  3981. dialogVisible4: false,
  3982. dialogVisible5: false,
  3983. dialogVisible6: false,
  3984. dialogVisible7: false,
  3985. dialogVisible8: false,
  3986. dialogVisible9: false,
  3987. dialogVisibleClass: false,
  3988. dialogVisibleMember: false,
  3989. dialogVisibleTcMember: false,
  3990. dialogVisibleMp3: false,
  3991. dialogVisibleSelect: false,
  3992. dialogVisibleSentence: false,
  3993. dialogVisibleRate: false,
  3994. dialogVisibleChoice: false,
  3995. dialogVisibleTool: false,
  3996. dialogVisibleSource: false,
  3997. answerDialogVisible: false,
  3998. dialogVisibleFile: false,
  3999. dialogVisibleText: false,
  4000. dialogVisibleText2: false,
  4001. dialogVisibleText3: false,
  4002. dialogVisibleVote: false,
  4003. dialogVisibleVote2: false,
  4004. dialogVisibleVote3: false,
  4005. videoVisible: false,
  4006. videoDetail: {},
  4007. showPDF: "",
  4008. pptImgUrl: "",
  4009. full: false,
  4010. isClickColor: 0,
  4011. publicTool: 0,
  4012. searchPeople: "",
  4013. searchTN: "",
  4014. tcMember: "",
  4015. userid: this.$route.query.userid,
  4016. oid: this.$route.query.oid,
  4017. org: this.$route.query.org,
  4018. role: this.$route.query.role,
  4019. type: this.$route.query.type,
  4020. cid: this.$route.query.cid != undefined ? this.$route.query.cid : "",
  4021. orgArray: ["150e3120-9195-11ed-b13d-005056b86db5"],
  4022. oidArray: [],
  4023. dialogVisibleTable: false,
  4024. dialogVisibleTable1: false,
  4025. dialogVisibleTable2: false,
  4026. tableJson: {
  4027. text: "",
  4028. },
  4029. cover: [], //项目封面
  4030. myWord: [],
  4031. evaJuri: [],
  4032. evalua: "",
  4033. targetArray: [],
  4034. eTitle: "",
  4035. eJson: {},
  4036. fid: "", //一级
  4037. sid: "", //二级
  4038. tid: "", //二级
  4039. typeMode: 1,
  4040. eJSONNum: 0,
  4041. data: {
  4042. meta: {
  4043. name: "example",
  4044. author: "dd@163.com",
  4045. version: "0.2",
  4046. },
  4047. format: "node_array",
  4048. data: [
  4049. {
  4050. id: "root",
  4051. isroot: true,
  4052. topic: "",
  4053. },
  4054. ],
  4055. },
  4056. askJson: {
  4057. askCount: 1,
  4058. askTitle: "",
  4059. askJson: [
  4060. {
  4061. askstitle: "",
  4062. askItem: 1,
  4063. checkList: [],
  4064. },
  4065. ],
  4066. },
  4067. testJson: {},
  4068. selectJson: {},
  4069. rateJson: [],
  4070. unitJson2: [],
  4071. unitJson: [
  4072. {
  4073. dyName: "", //单元标题
  4074. chapterInfo: [
  4075. {
  4076. isread: false,
  4077. chapterid: this.guid(),
  4078. title: "",
  4079. courseName: "",
  4080. taskJson: [
  4081. {
  4082. task: "",
  4083. people: "",
  4084. time: "",
  4085. taskDetail: "",
  4086. chapterData: [],
  4087. toolText: "",
  4088. toolChoose: [
  4089. {
  4090. tool: [],
  4091. toolDetail: "",
  4092. toolType: 0,
  4093. askCount: 1,
  4094. askTitle: "",
  4095. askJson: [
  4096. {
  4097. askstitle: "",
  4098. askItem: 1,
  4099. checkList: [],
  4100. },
  4101. ],
  4102. },
  4103. ],
  4104. toolArray: [],
  4105. isShowTools: false,
  4106. askCount: 1,
  4107. isFold: 0,
  4108. askTitle: "",
  4109. askJson: [
  4110. {
  4111. askstitle: "",
  4112. askItem: 1,
  4113. checkList: [],
  4114. },
  4115. ],
  4116. checkJson: [
  4117. {
  4118. checkCount: [],
  4119. checkPerent: [],
  4120. },
  4121. ],
  4122. homeworkList: [],
  4123. },
  4124. ],
  4125. itemCount: 1,
  4126. fileList1: [],
  4127. video: [],
  4128. testData: [],
  4129. pData: [],
  4130. templateArray: [],
  4131. },
  4132. ],
  4133. },
  4134. ],
  4135. studentJuri: [],
  4136. teacherJuri: [],
  4137. teacherJuri2: [],
  4138. checkboxList: [],
  4139. checkboxList2: [],
  4140. checkboxList3: [],
  4141. checkboxListPeople: [],
  4142. number: "",
  4143. tTitle: "",
  4144. tdetail: "",
  4145. templateC: {},
  4146. AttText: {},
  4147. AttTextType: 0,
  4148. AttTextIndex: 0,
  4149. cTemplate: "",
  4150. CourseType: [],
  4151. CourseTypeJson: {},
  4152. courseTypeId: [],
  4153. courseTypeSon: [],
  4154. clearArray: [],
  4155. loading: false,
  4156. toolType: 0,
  4157. inputShow: true,
  4158. toolIndex: 0,
  4159. cidType: 0,
  4160. cidttt: 1,
  4161. answerQ: "",
  4162. questionAnswer: "",
  4163. grade: [],
  4164. courseUserid: "",
  4165. timer: null,
  4166. checkId: "",
  4167. isDelete: 1,
  4168. addindex: 0,
  4169. selectSteps: 1,
  4170. groupJson: {},
  4171. dialogVisibleGroup: false,
  4172. fpath: "",
  4173. ManAarray: [],
  4174. ManAarray2: [],
  4175. proVisible: false,
  4176. progress: 0,
  4177. isFinishSize: 0,
  4178. isAllsize: 0,
  4179. playerOptions: {
  4180. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  4181. autoplay: false, //如果true,浏览器准备好时开始回放。
  4182. muted: false, // 默认情况下将会消除任何音频。
  4183. loop: false, // 导致视频一结束就重新开始。
  4184. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  4185. language: "zh-CN",
  4186. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  4187. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  4188. sources: [
  4189. {
  4190. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  4191. src: "", //url地址require("../../assets/media/aaa.mp4")
  4192. },
  4193. ],
  4194. // poster: require("../../assets/tu31.png"), //你的封面地址
  4195. // poster: dataRes.imgUrl, //你的封面地址
  4196. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  4197. controlBar: {
  4198. timeDivider: true, //当前时间和持续时间的分隔符
  4199. durationDisplay: true, //显示持续时间
  4200. remainingTimeDisplay: false, //是否显示剩余时间功能
  4201. fullscreenToggle: true, //全屏按钮
  4202. },
  4203. },
  4204. sourcesData: [],
  4205. fullDialogVisible: false,
  4206. fulltype: "",
  4207. fullUrl: "",
  4208. editSourceType: 1,
  4209. radio: [],
  4210. checkJson: [],
  4211. graphJson: {},
  4212. rightBoxHeight: 0,
  4213. checkBoolean:false,
  4214. pageSize:20,
  4215. total:0,
  4216. page:0,
  4217. };
  4218. },
  4219. computed: {
  4220. offsetLetfPx: function () {
  4221. //addnum可以直接在模板语法里面用,相当于data内的值
  4222. return (
  4223. $(".cru_select")[this.unitIndex] &&
  4224. $(".cru_select")[this.unitIndex].offsetLeft
  4225. );
  4226. },
  4227. getVideo() {
  4228. //此处不需要携带参数
  4229. return function (url) {
  4230. var d = JSON.parse(JSON.stringify(this.playerOptions));
  4231. d.sources[0].src = url;
  4232. return d;
  4233. };
  4234. },
  4235. getMan() {
  4236. return function (people) {
  4237. let _people = "";
  4238. if (this.ManAarray.length) {
  4239. for (var i = 0; i < this.ManAarray.length; i++) {
  4240. if (this.ManAarray[i].userid == people) {
  4241. _people = this.ManAarray[i].name;
  4242. break;
  4243. }
  4244. }
  4245. }
  4246. return _people ? _people : "";
  4247. };
  4248. },
  4249. getMan2() {
  4250. return function (people) {
  4251. let _people = people;
  4252. let _people2 = "";
  4253. if (this.ManAarray.length) {
  4254. for (var i = 0; i < this.ManAarray.length; i++) {
  4255. if (this.ManAarray[i].userid == people) {
  4256. _people2 = this.ManAarray[i].name;
  4257. break;
  4258. }
  4259. }
  4260. }
  4261. if (people == this.courseUserid) {
  4262. return "";
  4263. }
  4264. return this.ManAarray.length ? _people2 : "";
  4265. };
  4266. },
  4267. getMen() {
  4268. return function (people) {
  4269. let _people = people;
  4270. let kp = [];
  4271. if (this.ManAarray.length) {
  4272. for (var k = 0; k < _people.length; k++) {
  4273. let person = _people[k];
  4274. for (var i = 0; i < this.ManAarray.length; i++) {
  4275. if (this.ManAarray[i].userid == person) {
  4276. // _people = this.ManAarray[i].name;
  4277. kp.push(this.ManAarray[i].name);
  4278. break;
  4279. }
  4280. }
  4281. }
  4282. }
  4283. return this.ManAarray.length ? (kp.length ? kp.join("、") : "") : "";
  4284. };
  4285. },
  4286. },
  4287. watch: {
  4288. steps(newValue, oldValue) {
  4289. if (newValue == 4) {
  4290. let chapters = this.unitJson;
  4291. let gjson = {
  4292. rootId: "pid",
  4293. nodes: [{ id: "pid", text: "", borderWidth: -1, color: "#128cff" }],
  4294. lines: [],
  4295. };
  4296. gjson.nodes[0].text = this.courseName;
  4297. for (var i = 0; i < chapters.length; i++) {
  4298. let _chapter = chapters[i];
  4299. gjson.nodes.push({
  4300. id: "chap" + i,
  4301. text: "阶段" + (i + 1) + "-" + _chapter.dyName,
  4302. borderWidth: -1,
  4303. color: "#0672e1",
  4304. });
  4305. gjson.lines.push({ from: "pid", to: "chap" + i });
  4306. let tasks = _chapter.chapterInfo[0].taskJson;
  4307. for (var j = 0; j < tasks.length; j++) {
  4308. let _task = tasks[j];
  4309. gjson.nodes.push({
  4310. id: "task" + i + "-" + j,
  4311. text: "任务" + (j + 1) + "-" + _task.task,
  4312. borderWidth: -1,
  4313. color: "#3c59da",
  4314. });
  4315. gjson.lines.push({ from: "chap" + i, to: "task" + i + "-" + j });
  4316. if (_task.people) {
  4317. let _people = "负责人-" + this.getGMan(_task.people);
  4318. gjson.nodes.push({
  4319. id: "people" + i + "-" + j,
  4320. text: _people,
  4321. borderWidth: -1,
  4322. color: "#004d9b",
  4323. });
  4324. gjson.lines.push({
  4325. from: "task" + i + "-" + j,
  4326. to: "people" + i + "-" + j,
  4327. });
  4328. if (_task.tcMember && _task.tcMember.length) {
  4329. for (var tc = 0; tc < _task.tcMember.length; tc++) {
  4330. let _tc = this.getGMan(_task.tcMember[tc]);
  4331. if (_tc) {
  4332. gjson.nodes.push({
  4333. id: "tc" + i + "-" + j + "-" + tc,
  4334. text: _tc,
  4335. borderWidth: -1,
  4336. color: "#53c5fb",
  4337. });
  4338. gjson.lines.push({
  4339. from: "people" + i + "-" + j,
  4340. to: "tc" + i + "-" + j + "-" + tc,
  4341. });
  4342. }
  4343. }
  4344. }
  4345. }
  4346. }
  4347. }
  4348. this.graphJson = gjson;
  4349. }else if(newValue == 5){
  4350. this.goTo(
  4351. this.fpath +
  4352. "?userid=" +
  4353. this.userid +
  4354. "&oid=" +
  4355. this.oid +
  4356. "&org=" +
  4357. this.org + '&role=' + this.role
  4358. );
  4359. }
  4360. },
  4361. unitIndex(newValue, oldValue) {
  4362. if (this.isDelete == 2) {
  4363. this.isDelete = 1;
  4364. return;
  4365. }
  4366. if (this.cid != "") {
  4367. let _unitIndex = oldValue;
  4368. if (
  4369. JSON.stringify(this.unitJson2[_unitIndex]) ==
  4370. JSON.stringify(this.unitJson[_unitIndex])
  4371. ) {
  4372. this.$refs.rightboxR.scrollTop = 0;
  4373. return;
  4374. }
  4375. let cPan = 1;
  4376. for (
  4377. var j = 0;
  4378. j < this.unitJson[_unitIndex].chapterInfo[0].taskJson.length;
  4379. j++
  4380. ) {
  4381. // if (
  4382. // !this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].task
  4383. // ) {
  4384. // this.$message.error("请填写任务名称");
  4385. // cPan = 2
  4386. // break;
  4387. // }
  4388. // if (
  4389. // !this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].people
  4390. // ) {
  4391. // this.$message.error("请填写负责人");
  4392. // cPan = 2
  4393. // break;
  4394. // }
  4395. // if (
  4396. // !this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].time
  4397. // ) {
  4398. // this.$message.error("请填写任务起止时间");
  4399. // cPan = 2
  4400. // break;
  4401. // }
  4402. if (this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList) {
  4403. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList =
  4404. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList.filter(
  4405. (ele) => {
  4406. return ele.value != "";
  4407. }
  4408. );
  4409. }
  4410. let _task = this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolArray
  4411. for(var _tool = 0;_tool<_task.length;_tool++){
  4412. delete _task[_tool].proVisible
  4413. }
  4414. }
  4415. if (cPan == 2) {
  4416. this.unitIndex = oldValue;
  4417. this.isDelete = 2;
  4418. return;
  4419. }
  4420. for (var i = 0; i < this.unitJson.length; i++) {
  4421. if (this.addindex != i) {
  4422. delete this.unitJson[i].isUpdate;
  4423. }
  4424. }
  4425. this.$refs.rightboxR.scrollTop = 0;
  4426. this.addindex = -1;
  4427. let params = [
  4428. {
  4429. cid: this.cid,
  4430. chapters: JSON.stringify(this.unitJson),
  4431. uid: this.userid,
  4432. unitIndex: _unitIndex,
  4433. },
  4434. ];
  4435. this.ajax
  4436. .post(this.$store.state.api + "updateStudioWorkNew4", params)
  4437. .then((res) => {
  4438. // this.$message({
  4439. // message: "修改成功",
  4440. // type: "success",
  4441. // });
  4442. // this.courseId = this.cid;
  4443. })
  4444. .catch((err) => {
  4445. this.$message.error("网络不佳");
  4446. console.error(err);
  4447. });
  4448. }
  4449. },
  4450. },
  4451. methods: {
  4452. handleCurrentChange(val) {
  4453. // console.log(`当前页: ${val}`);
  4454. this.page = val;
  4455. this.getTeacher();
  4456. },
  4457. handleCheckAllChange(val) {
  4458. this.checkedCities = val ? cityOptions : [];
  4459. this.isIndeterminate = false;
  4460. },
  4461. handleCheckedCitiesChange(value) {
  4462. let checkedCount = value.length;
  4463. this.checkAll = checkedCount === this.cities.length;
  4464. this.isIndeterminate =
  4465. checkedCount > 0 && checkedCount < this.cities.length;
  4466. },
  4467. addHw(e) {
  4468. var el = e.currentTarget;
  4469. el.getElementsByTagName("input")[0].click();
  4470. },
  4471. change(val) {
  4472. console.log(val);
  4473. this.$forceUpdate();
  4474. },
  4475. change2(val) {
  4476. console.log(val);
  4477. this.$forceUpdate();
  4478. },
  4479. handleClose(done) {
  4480. this.videoDetail = {};
  4481. done();
  4482. },
  4483. imgChange1(file, fileList, type, itemTaskIndex) {
  4484. if (type == 1) {
  4485. var _tmp = this.cover;
  4486. } else if (
  4487. type == 2 ||
  4488. type == 3 ||
  4489. type == 6 ||
  4490. type == 7 ||
  4491. type == 8
  4492. ) {
  4493. var _tmp =
  4494. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  4495. .chapterData;
  4496. } else if (type == 4) {
  4497. var _tmp = this.unitJson[this.unitIndex].chapterInfo[0].fileList1;
  4498. } else {
  4499. var _tmp =
  4500. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  4501. .homeworkList;
  4502. }
  4503. this.noneBtnImg = _tmp.length >= 1;
  4504. },
  4505. goTo(path) {
  4506. this.$router.push(path);
  4507. },
  4508. guid() {
  4509. var _num,
  4510. i,
  4511. _guid = "";
  4512. for (i = 0; i < 32; i++) {
  4513. _guid += Math.floor(Math.random() * 16).toString(16); //随机0 - 16 的数字 转变为16进制的字符串
  4514. _num = Math.floor((i - 7) / 4); //计算 (i-7)除4
  4515. if (_num > -1 && _num < 4 && i == 7 + 4 * _num) {
  4516. //会使guid中间加 "-" 形式为xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
  4517. _guid += "-";
  4518. }
  4519. }
  4520. return _guid;
  4521. },
  4522. lastSteps() {
  4523. if (this.steps == 5) {
  4524. this.goTo(
  4525. this.fpath +
  4526. "?userid=" +
  4527. this.userid +
  4528. "&oid=" +
  4529. this.oid +
  4530. "&org=" +
  4531. this.org + '&role=' + this.role
  4532. );
  4533. } else {
  4534. if (this.cidttt == 0) {
  4535. this.steps--;
  4536. if (this.steps == 1) {
  4537. setTimeout(() => {
  4538. this.checkEva(this.checkId);
  4539. }, 0);
  4540. }
  4541. } else {
  4542. if (this.steps == 3) {
  4543. this.steps = 1;
  4544. setTimeout(() => {
  4545. this.checkEva(this.checkId);
  4546. }, 0);
  4547. }
  4548. if (this.steps == 4) {
  4549. this.steps--;
  4550. setTimeout(() => {
  4551. this.checkEva(this.checkId);
  4552. }, 0);
  4553. }
  4554. }
  4555. }
  4556. },
  4557. navSteps(s) {
  4558. if (this.courseName == "" ) {
  4559. this.$message.error("请将信息填写完整");
  4560. return;
  4561. }
  4562. if (this.cidttt == 0) {
  4563. if (this.steps == 1) {
  4564. if (this.cid == "" || this.cid == undefined) {
  4565. this.addWork();
  4566. } else {
  4567. if (this.userid != this.courseUserid) {
  4568. if (
  4569. this.checkboxListPeople.join(",") !=
  4570. this.checkboxList3.join(",")
  4571. ) {
  4572. this.updateWork();
  4573. } else {
  4574. this.updateWork2();
  4575. }
  4576. } else {
  4577. this.updateWork();
  4578. }
  4579. }
  4580. this.setMan();
  4581. }
  4582. if (s == 1) {
  4583. this.steps = 1;
  4584. setTimeout(() => {
  4585. this.checkEva(this.checkId);
  4586. }, 0);
  4587. }
  4588. if (s == 2) {
  4589. this.steps = 2;
  4590. }
  4591. if (s == 3) {
  4592. this.cTemplate = this.templateC.content;
  4593. this.dialogVisible2 = false;
  4594. this.steps = 3;
  4595. setTimeout(() => {
  4596. this.checkEva(this.checkId);
  4597. }, 1000);
  4598. }
  4599. if (s == 4 && this.cidType == 0) {
  4600. this.$message.error("请将信息填写完整");
  4601. return;
  4602. } else if (s == 4) {
  4603. let cPan = 1;
  4604. for (var i = 0; i < this.unitJson.length; i++) {
  4605. for (
  4606. var j = 0;
  4607. j < this.unitJson[i].chapterInfo[0].taskJson.length;
  4608. j++
  4609. ) {
  4610. // if (
  4611. // !this.unitJson[i].chapterInfo[0].taskJson[j].task
  4612. // ) {
  4613. // this.$message.error("请填写任务名称");
  4614. // cPan = 2
  4615. // break;
  4616. // }
  4617. // if (
  4618. // !this.unitJson[i].chapterInfo[0].taskJson[j].people
  4619. // ) {
  4620. // this.$message.error("请填写负责人");
  4621. // cPan = 2
  4622. // break;
  4623. // }
  4624. // if (
  4625. // !this.unitJson[i].chapterInfo[0].taskJson[j].time
  4626. // ) {
  4627. // this.$message.error("请填写任务起止时间");
  4628. // cPan = 2
  4629. // break;
  4630. // }
  4631. if (this.unitJson[i].chapterInfo[0].taskJson[j].eList) {
  4632. this.unitJson[i].chapterInfo[0].taskJson[j].eList =
  4633. this.unitJson[i].chapterInfo[0].taskJson[j].eList.filter(
  4634. (ele) => {
  4635. return ele.value != "";
  4636. }
  4637. );
  4638. }
  4639. }
  4640. }
  4641. if (cPan == 2) {
  4642. return;
  4643. }
  4644. if (this.userid != this.courseUserid) {
  4645. if (
  4646. this.checkboxListPeople.join(",") != this.checkboxList3.join(",")
  4647. ) {
  4648. this.updateWork();
  4649. } else {
  4650. this.updateWork2();
  4651. }
  4652. } else {
  4653. this.updateWork();
  4654. }
  4655. this.steps = 4;
  4656. }
  4657. } else {
  4658. if (this.steps == 1) {
  4659. if (this.cid == "" || this.cid == undefined) {
  4660. this.addWork();
  4661. } else {
  4662. if (this.userid != this.courseUserid) {
  4663. if (
  4664. this.checkboxListPeople.join(",") !=
  4665. this.checkboxList3.join(",")
  4666. ) {
  4667. this.updateWork();
  4668. } else {
  4669. this.updateWork2();
  4670. }
  4671. } else {
  4672. this.updateWork();
  4673. }
  4674. }
  4675. this.setMan();
  4676. }
  4677. if (s == 1) {
  4678. this.steps = 1;
  4679. setTimeout(() => {
  4680. this.checkEva(this.checkId);
  4681. }, 0);
  4682. }
  4683. if (s == 3) {
  4684. this.cTemplate = this.templateC.content;
  4685. this.dialogVisible2 = false;
  4686. this.steps = 3;
  4687. setTimeout(() => {
  4688. this.checkEva(this.checkId);
  4689. }, 1000);
  4690. }
  4691. if (s == 4 && this.cidType == 0) {
  4692. this.$message.error("请将信息填写完整");
  4693. return;
  4694. } else if (s == 4) {
  4695. let cPan = 1;
  4696. for (var i = 0; i < this.unitJson.length; i++) {
  4697. for (
  4698. var j = 0;
  4699. j < this.unitJson[i].chapterInfo[0].taskJson.length;
  4700. j++
  4701. ) {
  4702. // if (
  4703. // !this.unitJson[i].chapterInfo[0].taskJson[j].task
  4704. // ) {
  4705. // this.$message.error("请填写任务名称");
  4706. // cPan = 2
  4707. // break;
  4708. // }
  4709. // if (
  4710. // !this.unitJson[i].chapterInfo[0].taskJson[j].people
  4711. // ) {
  4712. // this.$message.error("请填写负责人");
  4713. // cPan = 2
  4714. // break;
  4715. // }
  4716. // if (
  4717. // !this.unitJson[i].chapterInfo[0].taskJson[j].time
  4718. // ) {
  4719. // this.$message.error("请填写任务起止时间");
  4720. // cPan = 2
  4721. // break;
  4722. // }
  4723. if (this.unitJson[i].chapterInfo[0].taskJson[j].eList) {
  4724. this.unitJson[i].chapterInfo[0].taskJson[j].eList =
  4725. this.unitJson[i].chapterInfo[0].taskJson[j].eList.filter(
  4726. (ele) => {
  4727. return ele.value != "";
  4728. }
  4729. );
  4730. }
  4731. }
  4732. }
  4733. if (cPan == 2) {
  4734. return;
  4735. }
  4736. if (this.userid != this.courseUserid) {
  4737. if (
  4738. this.checkboxListPeople.join(",") != this.checkboxList3.join(",")
  4739. ) {
  4740. this.updateWork();
  4741. } else {
  4742. this.updateWork2();
  4743. }
  4744. } else {
  4745. this.updateWork();
  4746. }
  4747. this.steps = 4;
  4748. }
  4749. }
  4750. this.$refs.stepBox.scrollTop = 0;
  4751. this.setVHeight();
  4752. },
  4753. nextSteps() {
  4754. if (this.cidttt == 1) {
  4755. if (this.steps == 1) {
  4756. if (this.courseName != "") {
  4757. this.steps = 3;
  4758. setTimeout(() => {
  4759. this.checkEva(this.checkId);
  4760. }, 1000);
  4761. if (this.cid == "" || this.cid == undefined) {
  4762. this.addWork();
  4763. } else {
  4764. if (this.userid != this.courseUserid) {
  4765. if (
  4766. this.checkboxListPeople.join(",") !=
  4767. this.checkboxList3.join(",")
  4768. ) {
  4769. this.updateWork();
  4770. } else {
  4771. this.updateWork2();
  4772. }
  4773. } else {
  4774. this.updateWork();
  4775. }
  4776. }
  4777. } else {
  4778. this.$message.error("请将信息填写完整");
  4779. return;
  4780. }
  4781. this.setMan();
  4782. } else if (this.steps == 3) {
  4783. if (this.cid == "" || this.cid == undefined) {
  4784. if (this.courseName == "") {
  4785. this.$message.error("请将信息填写完整");
  4786. return;
  4787. } else {
  4788. this.addWork();
  4789. if (this.type != 2) {
  4790. this.steps = 5;
  4791. } else {
  4792. this.steps++;
  4793. }
  4794. }
  4795. } else {
  4796. if (this.courseName == "") {
  4797. this.$message.error("请将信息填写完整");
  4798. return;
  4799. } else {
  4800. if (this.type != 2) {
  4801. this.steps = 5;
  4802. } else {
  4803. this.steps++;
  4804. }
  4805. if (this.userid != this.courseUserid) {
  4806. if (
  4807. this.checkboxListPeople.join(",") !=
  4808. this.checkboxList3.join(",")
  4809. ) {
  4810. this.updateWork();
  4811. } else {
  4812. this.updateWork2();
  4813. }
  4814. } else {
  4815. this.updateWork();
  4816. }
  4817. }
  4818. }
  4819. } else if (this.steps == 4) {
  4820. if (this.userid != this.courseUserid) {
  4821. this.updateWork2();
  4822. // this.updateWork();
  4823. } else {
  4824. this.updateWork();
  4825. }
  4826. this.steps++;
  4827. }
  4828. } else {
  4829. if (this.steps == 1) {
  4830. if (this.courseName != "") {
  4831. if (this.cid == "" || this.cid == undefined) {
  4832. this.addWork();
  4833. } else {
  4834. if (this.userid != this.courseUserid) {
  4835. if (
  4836. this.checkboxListPeople.join(",") !=
  4837. this.checkboxList3.join(",")
  4838. ) {
  4839. this.updateWork();
  4840. } else {
  4841. this.updateWork2();
  4842. }
  4843. } else {
  4844. this.updateWork();
  4845. }
  4846. }
  4847. this.steps++;
  4848. } else {
  4849. this.$message.error("请将信息填写完整");
  4850. return;
  4851. }
  4852. this.setMan();
  4853. } else if (this.steps == 2) {
  4854. if (this.templateC.id != "" || this.templateC.id != undefined) {
  4855. this.cTemplate = this.templateC.content;
  4856. }
  4857. this.dialogVisible2 = false;
  4858. this.steps++;
  4859. setTimeout(() => {
  4860. this.checkEva(this.checkId);
  4861. }, 1000);
  4862. } else if (this.steps == 3) {
  4863. if (this.cid == "" || this.cid == undefined) {
  4864. if (this.courseName == "") {
  4865. this.$message.error("请将信息填写完整");
  4866. return;
  4867. } else {
  4868. this.addWork();
  4869. if (this.type != 2) {
  4870. this.steps = 5;
  4871. } else {
  4872. this.steps++;
  4873. }
  4874. }
  4875. } else {
  4876. if (this.courseName == "") {
  4877. this.$message.error("请将信息填写完整");
  4878. return;
  4879. } else {
  4880. if (this.type != 2) {
  4881. this.steps = 5;
  4882. } else {
  4883. this.steps++;
  4884. }
  4885. if (this.userid != this.courseUserid) {
  4886. if (
  4887. this.checkboxListPeople.join(",") !=
  4888. this.checkboxList3.join(",")
  4889. ) {
  4890. this.updateWork();
  4891. } else {
  4892. this.updateWork2();
  4893. }
  4894. } else {
  4895. this.updateWork();
  4896. }
  4897. }
  4898. }
  4899. } else if (this.steps == 4) {
  4900. if (this.userid != this.courseUserid) {
  4901. if (
  4902. this.checkboxListPeople.join(",") != this.checkboxList3.join(",")
  4903. ) {
  4904. this.updateWork();
  4905. } else {
  4906. this.updateWork2();
  4907. }
  4908. } else {
  4909. this.updateWork();
  4910. }
  4911. this.steps++;
  4912. }
  4913. }
  4914. this.$refs.stepBox.scrollTop = 0;
  4915. this.setVHeight();
  4916. },
  4917. unitSet(i) {
  4918. this.unitIndex = i;
  4919. // this.$refs.rightboxR.scrollTop = 0;
  4920. this.setVHeight();
  4921. },
  4922. time() {
  4923. if (!this.now) {
  4924. this.now = new Date().getTime();
  4925. return true;
  4926. } else {
  4927. let time = new Date().getTime();
  4928. if (time - this.now > 3000) {
  4929. this.now = time;
  4930. return true;
  4931. } else {
  4932. return false;
  4933. }
  4934. }
  4935. },
  4936. deleteUnit(i) {
  4937. var _this = this;
  4938. if (_this.time()) {
  4939. _this
  4940. .$confirm("确定删除此单元吗?", "提示", {
  4941. confirmButtonText: "确定",
  4942. cancelButtonText: "取消",
  4943. type: "warning",
  4944. })
  4945. .then(() => {
  4946. _this.isDelete = 2;
  4947. // _this.unitIndex = _this.unitIndex - 1;
  4948. _this.deleteWork(_this.unitJson[i].chapterInfo[0].chapterid);
  4949. // _this.$message.success("删除成功");
  4950. })
  4951. .catch(() => {
  4952. return;
  4953. });
  4954. }
  4955. },
  4956. deleteWork(chapid) {
  4957. let params = [
  4958. {
  4959. cid: this.cid,
  4960. chapters: JSON.stringify(this.unitJson),
  4961. uid: this.userid,
  4962. chapid: chapid,
  4963. },
  4964. ];
  4965. this.ajax
  4966. .post(this.$store.state.api + "deleteStudioWork", params)
  4967. .then((res) => {
  4968. this.$message({
  4969. message: "删除成功",
  4970. type: "success",
  4971. });
  4972. this.unitJson.splice(this.unitIndex, 1);
  4973. this.deleteStudentToolS(this.unitIndex);
  4974. this.unitIndex = this.unitIndex - 1;
  4975. })
  4976. .catch((err) => {
  4977. this.$message.error("网络不佳");
  4978. console.error(err);
  4979. });
  4980. },
  4981. deleteTool(itemTaskIndex, i) {
  4982. // var _this = this;
  4983. // if (_this.time()) {
  4984. // _this
  4985. // .$confirm("确定删除此工具吗?", "提示", {
  4986. // confirmButtonText: "确定",
  4987. // cancelButtonText: "取消",
  4988. // type: "warning",
  4989. // })
  4990. // .then(() => {
  4991. // _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  4992. // itemTaskIndex
  4993. // ].toolChoose.splice(i, 1);
  4994. // _this.$message.success("删除成功");
  4995. // })
  4996. // .catch(() => {
  4997. // return;
  4998. // });
  4999. // }
  5000. var _this = this;
  5001. _this
  5002. .$confirm("确定删除此步骤吗?", "提示", {
  5003. confirmButtonText: "确定",
  5004. cancelButtonText: "取消",
  5005. type: "warning",
  5006. })
  5007. .then(() => {
  5008. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  5009. itemTaskIndex
  5010. ].toolArray.splice(i, 1);
  5011. this.deleteStudentToolSTT(itemTaskIndex, i);
  5012. _this.$message.success("删除成功");
  5013. })
  5014. .catch(() => {
  5015. return;
  5016. });
  5017. },
  5018. deleteStudentToolSTT(task, tool) {
  5019. let params = [
  5020. {
  5021. cid: this.cid,
  5022. stage: this.unitIndex,
  5023. task: task,
  5024. tool: tool,
  5025. },
  5026. ];
  5027. this.ajax
  5028. .post(this.$store.state.api + "deleteStudioToolSTT", params)
  5029. .then((res) => {})
  5030. .catch((err) => {
  5031. console.error(err);
  5032. });
  5033. },
  5034. deleteStudentToolST(task) {
  5035. let params = [
  5036. {
  5037. cid: this.cid,
  5038. stage: this.unitIndex,
  5039. task: task,
  5040. },
  5041. ];
  5042. this.ajax
  5043. .post(this.$store.state.api + "deleteStudioToolST", params)
  5044. .then((res) => {})
  5045. .catch((err) => {
  5046. console.error(err);
  5047. });
  5048. },
  5049. deleteStudentToolS() {
  5050. let params = [
  5051. {
  5052. cid: this.cid,
  5053. stage: this.unitIndex,
  5054. },
  5055. ];
  5056. this.ajax
  5057. .post(this.$store.state.api + "deleteStudioToolS", params)
  5058. .then((res) => {})
  5059. .catch((err) => {
  5060. console.error(err);
  5061. });
  5062. },
  5063. deleteSentence(i) {
  5064. var _this = this;
  5065. if (_this.time()) {
  5066. _this
  5067. .$confirm("确定删除此题目吗?", "提示", {
  5068. confirmButtonText: "确定",
  5069. cancelButtonText: "取消",
  5070. type: "warning",
  5071. })
  5072. .then(() => {
  5073. _this.sentenceList.splice(i, 1);
  5074. _this.$message.success("删除成功");
  5075. })
  5076. .catch(() => {
  5077. return;
  5078. });
  5079. }
  5080. },
  5081. deleteS(s, i, j) {
  5082. this.sentenceList[i].addSentence.splice(j, 1);
  5083. if (this.sentenceList[i].rightAnswer.indexOf(s) != -1) {
  5084. var a = this.sentenceList[i].rightAnswer.indexOf(s);
  5085. this.sentenceList[i].rightAnswer.splice(a, 1);
  5086. }
  5087. },
  5088. openT() {
  5089. window.parent.postMessage(
  5090. {
  5091. tools: "25",
  5092. },
  5093. "*"
  5094. );
  5095. },
  5096. deleteTask(i) {
  5097. var _this = this;
  5098. if (_this.time()) {
  5099. _this
  5100. .$confirm("确定删除此任务吗?", "提示", {
  5101. confirmButtonText: "确定",
  5102. cancelButtonText: "取消",
  5103. type: "warning",
  5104. })
  5105. .then(() => {
  5106. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson.splice(
  5107. i,
  5108. 1
  5109. );
  5110. this.deleteStudentToolST(i);
  5111. _this.$message.success("删除成功");
  5112. })
  5113. .catch(() => {
  5114. return;
  5115. });
  5116. }
  5117. },
  5118. handlePictureCardPreview(file) {
  5119. this.dialogImageUrl = file.url;
  5120. },
  5121. clean(i, c) {
  5122. this.unitJson[this.unitIndex].chapterInfo[i].fileList1.splice(c, 1);
  5123. },
  5124. handle_remove1(file, fileList, type) {
  5125. var _tmp = this.cover;
  5126. for (var i = 0, len = _tmp.length; i < len; i++) {
  5127. if (_tmp[i].uid == file.uid) {
  5128. _tmp.splice(i, 1);
  5129. break;
  5130. }
  5131. this.cover = _tmp;
  5132. }
  5133. this.noneBtnImg = _tmp.length >= 1;
  5134. this.isSysPic = false;
  5135. },
  5136. addImg(e) {
  5137. var el = e.currentTarget || e;
  5138. el.getElementsByTagName("input")[0].click();
  5139. e.target.value = "";
  5140. },
  5141. addChaptersTools(i) {
  5142. this.chapTools = [
  5143. {
  5144. tools: [],
  5145. toolDetail: "",
  5146. },
  5147. ];
  5148. this.chapCount = i;
  5149. this.dialogVisible4 = true;
  5150. },
  5151. isNoFinsh() {
  5152. this.$message.warning("功能正在开发中");
  5153. },
  5154. addAttText(i) {
  5155. this.AttText = {
  5156. title: "",
  5157. text: "",
  5158. };
  5159. // this.taskCount = i;
  5160. this.AttTextType = 0;
  5161. this.$forceUpdate();
  5162. this.dialogVisible6 = true;
  5163. },
  5164. openLine(i) {
  5165. this.line = "";
  5166. this.lineTitle = "";
  5167. // this.lineCount = i;
  5168. this.lineType = 0;
  5169. this.$forceUpdate();
  5170. this.dialogVisible7 = true;
  5171. },
  5172. beforeUpload1(event, type) {
  5173. const loading = this.openLoading();
  5174. var file = event.target.files[0];
  5175. var credentials = {
  5176. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  5177. secretAccessKey: "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",
  5178. }; //秘钥形式的登录上传
  5179. window.AWS.config.update(credentials);
  5180. window.AWS.config.region = "cn-northwest-1"; //设置区域
  5181. var bucket = new window.AWS.S3({
  5182. params: {
  5183. Bucket: "ccrb",
  5184. },
  5185. }); //选择桶
  5186. var _this = this;
  5187. if (file) {
  5188. var params = {
  5189. Key:
  5190. file.name.split(".")[0] +
  5191. new Date().getTime() +
  5192. "." +
  5193. file.name.split(".")[file.name.split(".").length - 1],
  5194. ContentType: file.type,
  5195. Body: file,
  5196. "Access-Control-Allow-Credentials": "*",
  5197. ACL: "public-read",
  5198. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  5199. var options = {
  5200. partSize: 2048 * 1024 * 1024,
  5201. queueSize: 2,
  5202. leavePartsOnError: true,
  5203. };
  5204. bucket
  5205. .upload(params, options)
  5206. .on("httpUploadProgress", function (evt) {
  5207. //这里可以写进度条
  5208. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  5209. })
  5210. .send(function (err, data) {
  5211. loading.close();
  5212. if (err) {
  5213. _this.$message.error("上传失败");
  5214. } else {
  5215. _this.cover.push({
  5216. name: file.name,
  5217. url: data.Location,
  5218. uid: file.uid,
  5219. });
  5220. _this.imgChange1(null, null, 1, null);
  5221. _this.choosePicVisible = false;
  5222. console.log(data.Location);
  5223. }
  5224. });
  5225. }
  5226. },
  5227. beforeUploadSelect(event, type) {
  5228. const loading = this.openLoading();
  5229. var file = event.target.files[0];
  5230. var credentials = {
  5231. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  5232. secretAccessKey: "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",
  5233. }; //秘钥形式的登录上传
  5234. window.AWS.config.update(credentials);
  5235. window.AWS.config.region = "cn-northwest-1"; //设置区域
  5236. var bucket = new window.AWS.S3({
  5237. params: {
  5238. Bucket: "ccrb",
  5239. },
  5240. }); //选择桶
  5241. var _this = this;
  5242. if (file) {
  5243. var params = {
  5244. Key:
  5245. file.name.split(".")[0] +
  5246. new Date().getTime() +
  5247. "." +
  5248. file.name.split(".")[file.name.split(".").length - 1],
  5249. ContentType: file.type,
  5250. Body: file,
  5251. "Access-Control-Allow-Credentials": "*",
  5252. ACL: "public-read",
  5253. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  5254. var options = {
  5255. partSize: 2048 * 1024 * 1024,
  5256. queueSize: 2,
  5257. leavePartsOnError: true,
  5258. };
  5259. bucket
  5260. .upload(params, options)
  5261. .on("httpUploadProgress", function (evt) {
  5262. //这里可以写进度条
  5263. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  5264. })
  5265. .send(function (err, data) {
  5266. loading.close();
  5267. if (err) {
  5268. _this.$message.error("上传失败");
  5269. } else {
  5270. _this.selectJson.url = data.Location;
  5271. console.log(data.Location);
  5272. }
  5273. });
  5274. }
  5275. },
  5276. chooseSysPic(p) {
  5277. this.cover.push({
  5278. name: "系统图片.png",
  5279. url: p,
  5280. });
  5281. this.imgChange1(null, null, 1, null);
  5282. this.isSysPic = true;
  5283. this.sysPicVisible = false;
  5284. },
  5285. beforeUpload(data) {
  5286. this.uploadLoading1 = true;
  5287. var file = data.file;
  5288. var credentials = {
  5289. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  5290. secretAccessKey: "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",
  5291. }; //秘钥形式的登录上传
  5292. window.AWS.config.update(credentials);
  5293. window.AWS.config.region = "cn-northwest-1"; //设置区域
  5294. var bucket = new window.AWS.S3({
  5295. params: {
  5296. Bucket: "ccrb",
  5297. },
  5298. }); //选择桶
  5299. var _this = this;
  5300. if (file) {
  5301. var params = {
  5302. Key:
  5303. file.name.split(".")[0] +
  5304. new Date().getTime() +
  5305. "." +
  5306. file.name.split(".")[file.name.split(".").length - 1],
  5307. ContentType: file.type,
  5308. Body: file,
  5309. "Access-Control-Allow-Credentials": "*",
  5310. ACL: "public-read",
  5311. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  5312. var options = {
  5313. partSize: 2048 * 1024 * 1024,
  5314. queueSize: 2,
  5315. leavePartsOnError: true,
  5316. };
  5317. bucket
  5318. .upload(params, options)
  5319. .on("httpUploadProgress", function (evt) {
  5320. //这里可以写进度条
  5321. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  5322. })
  5323. .send(function (err, data) {
  5324. _this.uploadLoading1 = false;
  5325. if (err) {
  5326. _this.$message.error("上传失败");
  5327. } else {
  5328. //上传成功处理
  5329. _this.unitJson[_this.unitIndex].chapterInfo[0].fileList1.push({
  5330. name: file.name,
  5331. url: data.Location,
  5332. uid: file.uid,
  5333. });
  5334. _this.imgChange();
  5335. console.log(data.Location);
  5336. }
  5337. });
  5338. }
  5339. },
  5340. onExceed() {
  5341. this.$message.error("项目封面仅支持上传一张,请删除后再进行上传");
  5342. },
  5343. beforeUpload2(event, unitIndex, type, itemTaskIndex) {
  5344. // const loading = this.openLoading();
  5345. var file = event.target.files[0];
  5346. var credentials = {
  5347. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  5348. secretAccessKey: "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",
  5349. }; //秘钥形式的登录上传
  5350. window.AWS.config.update(credentials);
  5351. window.AWS.config.region = "cn-northwest-1"; //设置区域
  5352. var bucket = new window.AWS.S3({
  5353. params: {
  5354. Bucket: "ccrb",
  5355. },
  5356. }); //选择桶
  5357. var _this = this;
  5358. if (type == 3) {
  5359. var b = [
  5360. "DOC",
  5361. "DOCX",
  5362. "DOCM",
  5363. "DOTM",
  5364. "DOTX",
  5365. "PPTX",
  5366. "PPSX",
  5367. "PPT",
  5368. "PPS",
  5369. "PPTM",
  5370. "POTM",
  5371. "PPAM",
  5372. "POTX",
  5373. "PPSM",
  5374. ];
  5375. if (
  5376. b.indexOf(
  5377. file.name
  5378. .split(".")
  5379. [file.name.split(".").length - 1].toLocaleUpperCase()
  5380. ) != -1
  5381. ) {
  5382. if (file.size / 1024 / 1024 > 80) {
  5383. this.$message.error("上传文件大于80兆,请重新选择文件!");
  5384. this.inputShow = true;
  5385. // loading.close();
  5386. return;
  5387. }
  5388. } else if (
  5389. file.name
  5390. .split(".")
  5391. [file.name.split(".").length - 1].toLocaleUpperCase() != "PDF"
  5392. ) {
  5393. if (file.size / 1024 / 1024 > 80) {
  5394. this.$message.error("添加成上传文件大于80兆,请重新选择文件!");
  5395. this.inputShow = true;
  5396. // loading.close();
  5397. return;
  5398. }
  5399. }
  5400. }
  5401. this.inputShow = false;
  5402. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5403. itemTaskIndex
  5404. ].progress = 0;
  5405. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5406. itemTaskIndex
  5407. ].proVisible = true;
  5408. if (file) {
  5409. var params = {
  5410. Key:
  5411. file.name.split(".")[0] +
  5412. new Date().getTime() +
  5413. "." +
  5414. file.name.split(".")[file.name.split(".").length - 1],
  5415. ContentType: file.type,
  5416. Body: file,
  5417. "Access-Control-Allow-Credentials": "*",
  5418. ACL: "public-read",
  5419. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  5420. var options = {
  5421. partSize: 2048 * 1024 * 1024,
  5422. queueSize: 2,
  5423. leavePartsOnError: true,
  5424. };
  5425. bucket
  5426. .upload(params, options)
  5427. .on("httpUploadProgress", function (evt) {
  5428. //这里可以写进度条
  5429. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  5430. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5431. itemTaskIndex
  5432. ].progress = parseInt((evt.loaded * 80) / evt.total);
  5433. })
  5434. .send(function (err, data) {
  5435. // loading.close();
  5436. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5437. itemTaskIndex
  5438. ].progress = 100;
  5439. setTimeout(() => {
  5440. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5441. itemTaskIndex
  5442. ].proVisible = false;
  5443. _this.$forceUpdate();
  5444. }, 1000);
  5445. _this.inputShow = true;
  5446. if (err) {
  5447. _this.$message.error("上传失败");
  5448. } else {
  5449. if (type == 2 || type == 3) {
  5450. if (
  5451. data.Location.split(".")[
  5452. data.Location.split(".").length - 1
  5453. ].toLocaleUpperCase() == "PDF"
  5454. ) {
  5455. type = 9;
  5456. }
  5457. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5458. itemTaskIndex
  5459. ].chapterData.push({
  5460. name: file.name,
  5461. url: data.Location,
  5462. uid: file.uid,
  5463. type: type,
  5464. });
  5465. _this.imgChange1(null, null, type, itemTaskIndex);
  5466. } else if (type == 4) {
  5467. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  5468. itemTaskIndex
  5469. ].fileList1.push({
  5470. name: file.name,
  5471. url: data.Location,
  5472. uid: file.uid,
  5473. });
  5474. _this.imgChange1(null, null, type, itemTaskIndex);
  5475. } else if (type == 5) {
  5476. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  5477. itemTaskIndex
  5478. ].homeworkList.push({
  5479. name: file.name,
  5480. url: data.Location,
  5481. uid: file.uid,
  5482. });
  5483. _this.imgChange1(null, null, type, itemTaskIndex);
  5484. }
  5485. console.log(data.Location);
  5486. }
  5487. });
  5488. }
  5489. },
  5490. getVideo2(url) {
  5491. var d = JSON.parse(JSON.stringify(this.playerOptions));
  5492. d.sources[0].src = url;
  5493. return d;
  5494. },
  5495. beforeUpload3(event, type) {
  5496. // const loading = this.openLoading();
  5497. var file = event.target.files[0];
  5498. var credentials = {
  5499. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  5500. secretAccessKey: "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",
  5501. }; //秘钥形式的登录上传
  5502. window.AWS.config.update(credentials);
  5503. window.AWS.config.region = "cn-northwest-1"; //设置区域
  5504. var bucket = new window.AWS.S3({
  5505. params: {
  5506. Bucket: "ccrb",
  5507. },
  5508. }); //选择桶
  5509. var _this = this;
  5510. if (type == 3) {
  5511. var b = [
  5512. "DOC",
  5513. "DOCX",
  5514. "DOCM",
  5515. "DOTM",
  5516. "DOTX",
  5517. "PPTX",
  5518. "PPSX",
  5519. "PPT",
  5520. "PPS",
  5521. "PPTM",
  5522. "POTM",
  5523. "PPAM",
  5524. "POTX",
  5525. "PPSM",
  5526. ];
  5527. if (
  5528. b.indexOf(
  5529. file.name
  5530. .split(".")
  5531. [file.name.split(".").length - 1].toLocaleUpperCase()
  5532. ) != -1
  5533. ) {
  5534. if (file.size / 1024 / 1024 > 80) {
  5535. this.$message.error("上传文件大于80兆,请重新选择文件!");
  5536. this.inputShow = true;
  5537. // loading.close();
  5538. return;
  5539. }
  5540. } else if (
  5541. file.name
  5542. .split(".")
  5543. [file.name.split(".").length - 1].toLocaleUpperCase() != "PDF"
  5544. ) {
  5545. if (file.size / 1024 / 1024 > 80) {
  5546. this.$message.error("添加成上传文件大于80兆,请重新选择文件!");
  5547. this.inputShow = true;
  5548. // loading.close();
  5549. return;
  5550. }
  5551. }
  5552. }
  5553. _this.inputShow = false;
  5554. _this.progress = 0;
  5555. _this.proVisible = true;
  5556. _this.isFinishSize = 0;
  5557. _this.isAllSize = (file.size / 1024 / 1024).toFixed(2);
  5558. if (file) {
  5559. var params = {
  5560. Key:
  5561. file.name.split(".")[0] +
  5562. new Date().getTime() +
  5563. "." +
  5564. file.name.split(".")[file.name.split(".").length - 1],
  5565. ContentType: file.type,
  5566. Body: file,
  5567. "Access-Control-Allow-Credentials": "*",
  5568. ACL: "public-read",
  5569. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  5570. var options = {
  5571. partSize: 2048 * 1024 * 1024,
  5572. queueSize: 2,
  5573. leavePartsOnError: true,
  5574. };
  5575. bucket
  5576. .upload(params, options)
  5577. .on("httpUploadProgress", function (evt) {
  5578. //这里可以写进度条
  5579. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  5580. _this.progress = parseInt((evt.loaded / evt.total) * 100);
  5581. _this.isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  5582. })
  5583. .send(function (err, data) {
  5584. // loading.close();
  5585. _this.progress = 100;
  5586. _this.isFinishSize = _this.isAllSize;
  5587. setTimeout(() => {
  5588. _this.proVisible = false;
  5589. // _this.dialogVisibleSource = false;
  5590. _this.$forceUpdate();
  5591. }, 1000);
  5592. _this.inputShow = true;
  5593. if (err) {
  5594. _this.$message.error("上传失败");
  5595. } else {
  5596. if (type == 2 || type == 3) {
  5597. var src = "";
  5598. if (
  5599. data.Location.split(".")[
  5600. data.Location.split(".").length - 1
  5601. ].toLocaleUpperCase() == "PDF"
  5602. ) {
  5603. type = 9;
  5604. }
  5605. if (type == 2) {
  5606. src = _this.getVideo2(data.Location);
  5607. } else if (type == 3) {
  5608. src =
  5609. "https://view.officeapps.live.com/op/view.aspx?src=" +
  5610. encodeURIComponent(data.Location);
  5611. } else {
  5612. src = data.Location;
  5613. }
  5614. // _this.unitJson[unitIndex].chapterInfo[0].taskJson[itemTaskIndex].toolArray.push({
  5615. // tool: 51,
  5616. // toolDetail: "",
  5617. // toolPhoto: "",
  5618. // toolEdit: false,
  5619. // toolId: _this.guid(),
  5620. // toolData: {
  5621. // name: file.name,
  5622. // url: data.Location,
  5623. // uid: file.uid,
  5624. // type: type,
  5625. // src: src,
  5626. // }
  5627. // });
  5628. _this.sourcesData.push({
  5629. name: file.name,
  5630. url: data.Location,
  5631. uid: file.uid,
  5632. type: type,
  5633. src: src,
  5634. });
  5635. }
  5636. console.log(data.Location);
  5637. }
  5638. });
  5639. }
  5640. },
  5641. async beforeUploadCC(event, type, task, toolindex, tool) {
  5642. // this.$message.success('进入上传')
  5643. var file = "";
  5644. file = event.target.files[0];
  5645. var credentials = {
  5646. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  5647. secretAccessKey: "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",
  5648. }; //秘钥形式的登录上传
  5649. window.AWS.config.update(credentials);
  5650. window.AWS.config.region = "cn-northwest-1"; //设置区域
  5651. var bucket = new window.AWS.S3({
  5652. params: {
  5653. Bucket: "ccrb",
  5654. },
  5655. }); //选择桶
  5656. var _this = this;
  5657. if(type == 3 && (file.size / 1024 / 1024) > 100){
  5658. _this.$message.error("上传文件大于100兆,请重新选择文件!");
  5659. return;
  5660. }
  5661. // _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[task].toolArray[toolindex].progress = 0;
  5662. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[task].toolArray[
  5663. toolindex
  5664. ].proVisible = true;
  5665. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[task].toolArray[
  5666. toolindex
  5667. ].isFinishSize = 0;
  5668. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[task].toolArray[
  5669. toolindex
  5670. ].isAllSize = (file.size / 1024 / 1024).toFixed(2);
  5671. _this.$forceUpdate();
  5672. var b = [
  5673. "DOC",
  5674. "DOCX",
  5675. "DOCM",
  5676. "DOTM",
  5677. "DOTX",
  5678. "PPTX",
  5679. "PPSX",
  5680. "PPT",
  5681. "PPS",
  5682. "PPTM",
  5683. "POTM",
  5684. "PPAM",
  5685. "POTX",
  5686. "PPSM",
  5687. ];
  5688. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  5689. var photoA = [
  5690. "BMP",
  5691. "GIF",
  5692. "PNG",
  5693. "JPGE",
  5694. "JPG",
  5695. "TIF",
  5696. "PCX",
  5697. "TGA",
  5698. "EXIF",
  5699. "FPX",
  5700. "SVG",
  5701. "APNG",
  5702. ];
  5703. if (
  5704. photoA.indexOf(
  5705. file.name
  5706. .split(".")
  5707. [file.name.split(".").length - 1].toLocaleUpperCase()
  5708. ) != -1 &&
  5709. type != 4
  5710. ) {
  5711. // const blob = await imageConversion.compress(file, 0.8)
  5712. file = await this.pngToWhiteBg(file);
  5713. const blob = await imageConversion.compressAccurately(file, 256);
  5714. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  5715. file = new File([blob], file.name, {
  5716. type: file.type,
  5717. });
  5718. }
  5719. if (file) {
  5720. var params = {
  5721. Key:
  5722. file.name.split(".")[0] +
  5723. new Date().getTime() +
  5724. "." +
  5725. file.name.split(".")[file.name.split(".").length - 1],
  5726. ContentType: file.type,
  5727. Body: file,
  5728. "Access-Control-Allow-Credentials": "*",
  5729. ACL: "public-read",
  5730. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  5731. var options = {
  5732. // partSize: 2048 * 1024 * 1024,
  5733. partSize: 1024 * 1024 * 1024,
  5734. queueSize: 2,
  5735. leavePartsOnError: true,
  5736. };
  5737. bucket
  5738. .upload(params, options)
  5739. .on("httpUploadProgress", function (evt) {
  5740. //这里可以写进度条
  5741. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  5742. // _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[task].toolArray[toolindex].progress = parseInt((evt.loaded * 80) / evt.total);
  5743. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  5744. task
  5745. ].toolArray[toolindex].isFinishSize = (
  5746. evt.loaded /
  5747. 1024 /
  5748. 1024
  5749. ).toFixed(2);
  5750. _this.$forceUpdate();
  5751. })
  5752. .send(function (err, data) {
  5753. // _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[task].toolArray[toolindex].progress = 100;
  5754. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  5755. task
  5756. ].toolArray[toolindex].isFinishSize =
  5757. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  5758. task
  5759. ].toolArray[toolindex].isAllSize;
  5760. _this.$forceUpdate();
  5761. setTimeout(() => {
  5762. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  5763. task
  5764. ].toolArray[toolindex].proVisible = false;
  5765. }, 1000);
  5766. if (err) {
  5767. // var a = _this.$refs.upload1.uploadFiles;
  5768. // a.splice(a.length - 1, a.length);
  5769. _this.$message.error("上传失败");
  5770. } else {
  5771. // _this.$message.success('上传成功')
  5772. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  5773. var c = [
  5774. "AVI",
  5775. "NAVI",
  5776. "MPEG",
  5777. "ASF",
  5778. "MOV",
  5779. "WMV",
  5780. "3GP",
  5781. "RM",
  5782. "RMVB",
  5783. "FLV",
  5784. "F4V",
  5785. "H.264",
  5786. "H.265",
  5787. "REAL VIDEO",
  5788. "MKV",
  5789. "WebM",
  5790. "HDDVD",
  5791. "MP4",
  5792. "MPG",
  5793. "M4V",
  5794. "MGV",
  5795. "OGV",
  5796. "QTM",
  5797. "STR",
  5798. "AMC",
  5799. "DVX",
  5800. "EVO",
  5801. "DAT",
  5802. "OGG",
  5803. "OGM",
  5804. ];
  5805. if (type == 1) {
  5806. if (
  5807. ["ZIP"].indexOf(
  5808. data.Location.split(".")[
  5809. data.Location.split(".").length - 1
  5810. ].toLocaleUpperCase()
  5811. ) != -1
  5812. ) {
  5813. _this.addCourseWorksS(
  5814. tool,
  5815. 13,
  5816. data.Location,
  5817. task,
  5818. toolindex
  5819. );
  5820. } else {
  5821. _this.addCourseWorksS(
  5822. tool,
  5823. 4,
  5824. data.Location,
  5825. task,
  5826. toolindex
  5827. );
  5828. }
  5829. } else if (type == 2) {
  5830. if (
  5831. c.indexOf(
  5832. data.Location.split(".")[
  5833. data.Location.split(".").length - 1
  5834. ].toLocaleUpperCase()
  5835. ) != -1
  5836. ) {
  5837. _this.addCourseWorksS(
  5838. tool,
  5839. 5,
  5840. data.Location,
  5841. task,
  5842. toolindex
  5843. );
  5844. } else {
  5845. _this.addCourseWorksS(
  5846. tool,
  5847. 1,
  5848. data.Location,
  5849. task,
  5850. toolindex
  5851. );
  5852. }
  5853. } else if (type == 3) {
  5854. let _type = 13
  5855. var imgA = [
  5856. "png",
  5857. "jpg",
  5858. "jpeg",
  5859. "bmp",
  5860. "gif",
  5861. "webp",
  5862. "psd",
  5863. "svg",
  5864. "tiff",
  5865. ];
  5866. var fileA = [
  5867. "PDF",
  5868. "DOC",
  5869. "DOCX",
  5870. "DOCM",
  5871. "DOTM",
  5872. "DOTX",
  5873. "PPTX",
  5874. "PPSX",
  5875. "PPT",
  5876. "PPS",
  5877. "PPTM",
  5878. "POTM",
  5879. "PPAM",
  5880. "POTX",
  5881. "PPSM",
  5882. "XLSX",
  5883. "XLS",
  5884. ];
  5885. var videoA = [
  5886. "AVI",
  5887. "NAVI",
  5888. "MPEG",
  5889. "ASF",
  5890. "MOV",
  5891. "WMV",
  5892. "3GP",
  5893. "RM",
  5894. "RMVB",
  5895. "FLV",
  5896. "F4V",
  5897. "H.264",
  5898. "H.265",
  5899. "REAL VIDEO",
  5900. "MKV",
  5901. "WebM",
  5902. "HDDVD",
  5903. "MP4",
  5904. "MPG",
  5905. "M4V",
  5906. "MGV",
  5907. "OGV",
  5908. "QTM",
  5909. "STR",
  5910. "AMC",
  5911. "DVX",
  5912. "EVO",
  5913. "DAT",
  5914. "OGG",
  5915. "OGM",
  5916. ];
  5917. if (
  5918. fileA.indexOf(
  5919. data.Location.split(".")[
  5920. data.Location.split(".").length - 1
  5921. ].toLocaleUpperCase()
  5922. ) != -1
  5923. ) {
  5924. _type = 4;
  5925. } else if (
  5926. videoA.indexOf(
  5927. data.Location.split(".")[
  5928. data.Location.split(".").length - 1
  5929. ].toLocaleUpperCase()
  5930. ) != -1
  5931. ) {
  5932. _type = 5;
  5933. } else if (
  5934. imgA.indexOf(
  5935. data.Location.split(".")[
  5936. data.Location.split(".").length - 1
  5937. ].toLocaleLowerCase()
  5938. ) != -1
  5939. ) {
  5940. _type = 1;
  5941. } else {
  5942. _type = 13;
  5943. }
  5944. _this.addCourseWorksS(tool, _type, data.Location, task, toolindex);
  5945. }
  5946. console.log(data.Location);
  5947. // _this.$message.success('上传成功'+data.Location)
  5948. }
  5949. });
  5950. }
  5951. },
  5952. pngToWhiteBg(file) {
  5953. const _file = file;
  5954. let read = new FileReader();
  5955. read.readAsDataURL(file); // 文件转base64
  5956. return new Promise((resolve, reject) => {
  5957. read.onload = (e) => {
  5958. let img = new Image();
  5959. img.src = e.target.result;
  5960. img.onload = async () => {
  5961. // 生成canvas
  5962. let canvas = document.createElement("canvas");
  5963. let context = canvas.getContext("2d");
  5964. // 绘制图片到canvas上
  5965. canvas.width = img.width;
  5966. canvas.height = img.height;
  5967. // 在canvas绘制前填充白色背景
  5968. context.fillStyle = "#fff";
  5969. context.fillRect(0, 0, canvas.width, canvas.height);
  5970. context.drawImage(img, 0, 0);
  5971. let base64 = canvas.toDataURL(file["type"], 1);
  5972. let newFile = this.dataUrlToFile(base64, _file);
  5973. resolve(newFile);
  5974. };
  5975. };
  5976. });
  5977. },
  5978. dataUrlToFile(dataurl, file) {
  5979. let arr = dataurl.split(","),
  5980. mime = arr[0].match(/:(.*?);/)[1],
  5981. bstr = atob(arr[1]),
  5982. n = bstr.length,
  5983. u8arr = new Uint8Array(n);
  5984. while (n--) {
  5985. u8arr[n] = bstr.charCodeAt(n);
  5986. }
  5987. // return new Blob([u8arr], { type: mime });
  5988. return new File(
  5989. [
  5990. new Blob([u8arr], {
  5991. type: mime,
  5992. }),
  5993. ],
  5994. file.name,
  5995. {
  5996. type: mime,
  5997. }
  5998. );
  5999. },
  6000. addunit() {
  6001. if (this.cid != "") {
  6002. let _unitIndex = this.unitIndex;
  6003. let cPan = 1;
  6004. for (
  6005. var j = 0;
  6006. j < this.unitJson[_unitIndex].chapterInfo[0].taskJson.length;
  6007. j++
  6008. ) {
  6009. // if (
  6010. // !this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].task
  6011. // ) {
  6012. // this.$message.error("请填写任务名称");
  6013. // cPan = 2
  6014. // break;
  6015. // }
  6016. // if (
  6017. // !this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].people
  6018. // ) {
  6019. // this.$message.error("请填写负责人");
  6020. // cPan = 2
  6021. // break;
  6022. // }
  6023. // if (
  6024. // !this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].time
  6025. // ) {
  6026. // this.$message.error("请填写任务起止时间");
  6027. // cPan = 2
  6028. // break;
  6029. // }
  6030. if (this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList) {
  6031. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList =
  6032. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList.filter(
  6033. (ele) => {
  6034. return ele.value != "";
  6035. }
  6036. );
  6037. }
  6038. }
  6039. if (cPan == 2) {
  6040. return;
  6041. }
  6042. }
  6043. this.unitJson.push({
  6044. dyName: "", //单元标题
  6045. isUpdate: 1,
  6046. chapterInfo: [
  6047. {
  6048. isread: false,
  6049. chapterid: this.guid(),
  6050. title: "",
  6051. courseName: "",
  6052. taskJson: [
  6053. {
  6054. task: "",
  6055. people: "",
  6056. time: "",
  6057. taskDetail: "",
  6058. chapterData: [],
  6059. toolText: "",
  6060. toolChoose: [
  6061. {
  6062. tool: [],
  6063. toolDetail: "",
  6064. toolType: 0,
  6065. askCount: 1,
  6066. askTitle: "",
  6067. askJson: [
  6068. {
  6069. askstitle: "",
  6070. askItem: 1,
  6071. checkList: [],
  6072. },
  6073. ],
  6074. },
  6075. ],
  6076. toolArray: [],
  6077. isShowTools: false,
  6078. askCount: 1,
  6079. isFold: 0,
  6080. askTitle: "",
  6081. askJson: [
  6082. {
  6083. askstitle: "",
  6084. askItem: 1,
  6085. checkList: [],
  6086. },
  6087. ],
  6088. checkJson: [
  6089. {
  6090. checkCount: [],
  6091. checkPerent: [],
  6092. },
  6093. ],
  6094. homeworkList: [],
  6095. },
  6096. ],
  6097. itemCount: 1,
  6098. fileList1: [],
  6099. video: [],
  6100. testData: [],
  6101. pData: [],
  6102. templateArray: [],
  6103. },
  6104. ],
  6105. });
  6106. this.addindex = this.unitJson.length - 1;
  6107. setTimeout(() => {
  6108. this.unitIndex = this.unitJson.length - 1;
  6109. this.unitSet(this.unitIndex);
  6110. }, 0);
  6111. },
  6112. addToolFun(tool) {
  6113. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6114. // itemTaskIndex
  6115. // ].toolChoose.push({
  6116. // tool: [],
  6117. // toolDetail: "",
  6118. // toolType: 0,
  6119. // askCount: 1,
  6120. // askTitle: "",
  6121. // askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  6122. // });
  6123. if (tool == 15) {
  6124. this.tableJson.text = "";
  6125. this.dialogVisible8 = true;
  6126. } else if (tool == 48) {
  6127. this.tableJson.text = "";
  6128. this.dialogVisibleTable1 = true;
  6129. } else if (tool == 52) {
  6130. this.tableJson.text = "";
  6131. this.dialogVisibleText = true;
  6132. } else if (tool == 51) {
  6133. this.addSourceFunD(this.taskCount);
  6134. } else if (tool == 56) {
  6135. this.askJson = {
  6136. askCount: 1,
  6137. askTitle: "",
  6138. askJson: [
  6139. {
  6140. askstitle: "",
  6141. askItem: 1,
  6142. checkList: [],
  6143. },
  6144. ],
  6145. };
  6146. this.dialogVisibleVote = true;
  6147. } else {
  6148. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6149. this.taskCount
  6150. ].toolArray.push({
  6151. tool: tool,
  6152. toolDetail: "",
  6153. toolPhoto: "",
  6154. toolEdit: false,
  6155. toolId: this.guid(),
  6156. });
  6157. this.$forceUpdate();
  6158. this.dialogVisibleTool = false;
  6159. if (tool == 1 || tool == 3 || tool == 6) {
  6160. setTimeout(() => {
  6161. this.openToolFun(
  6162. tool,
  6163. this.taskCount,
  6164. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6165. this.taskCount
  6166. ].toolArray.length - 1
  6167. );
  6168. }, 500);
  6169. } else if (tool == 53 || tool == 54 || tool == 55) {
  6170. setTimeout(() => {
  6171. this.addImg(
  6172. document.getElementById(
  6173. this.taskCount.toString() +
  6174. "-" +
  6175. (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6176. this.taskCount
  6177. ].toolArray.length -
  6178. 1)
  6179. )
  6180. );
  6181. }, 500);
  6182. }
  6183. this.setPeople(this.unitIndex, this.taskCount, this.userid);
  6184. }
  6185. },
  6186. addToolFunD(itemTaskIndex) {
  6187. this.taskCount = itemTaskIndex;
  6188. this.dialogVisibleTool = true;
  6189. },
  6190. addSourceFunD(itemTaskIndex) {
  6191. this.sourcesData = [];
  6192. this.proVisible = false;
  6193. this.progress = 0;
  6194. this.inputShow = true;
  6195. this.taskCount = itemTaskIndex;
  6196. this.dialogVisibleSource = true;
  6197. },
  6198. setChapterIndex(itemTool, index) {
  6199. itemTool.sourceIndex = index;
  6200. this.setVHeight();
  6201. this.$forceUpdate();
  6202. },
  6203. setVHeight() {
  6204. this.$nextTick(function () {
  6205. setTimeout(() => {
  6206. let task = this.unitJson[this.unitIndex].chapterInfo[0].taskJson;
  6207. for (var j = 0; j < task.length; j++) {
  6208. let tool = task[j].toolArray;
  6209. for (var z = 0; z < tool.length; z++) {
  6210. let _tool = tool[z];
  6211. if (_tool.tool == 51) {
  6212. var a = document.getElementsByClassName("box_course" + j + z)[0]
  6213. .offsetHeight;
  6214. document.getElementsByClassName(
  6215. "vedioList" + j + z
  6216. )[0].style.height = a + "px";
  6217. }
  6218. }
  6219. }
  6220. }, 0);
  6221. });
  6222. },
  6223. addSourceData() {
  6224. if (!this.sourcesData.length) {
  6225. this.$message.error("请上传资源");
  6226. return;
  6227. }
  6228. if (this.editSourceType == 1) {
  6229. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6230. this.taskCount
  6231. ].toolArray.push({
  6232. tool: 51,
  6233. toolDetail: "",
  6234. toolPhoto: "",
  6235. toolEdit: false,
  6236. toolId: this.guid(),
  6237. toolData: JSON.parse(JSON.stringify(this.sourcesData)),
  6238. sourceIndex: 0,
  6239. });
  6240. } else {
  6241. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6242. this.taskCount
  6243. ].toolArray[this.toolIndex].toolData = JSON.parse(
  6244. JSON.stringify(this.sourcesData)
  6245. );
  6246. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6247. this.taskCount
  6248. ].toolArray[this.toolIndex].sourceIndex = 0;
  6249. }
  6250. let time = new Date()
  6251. let nowTime = this.timestampToTime(time.toLocaleString('en-US',{hour12: false}).split(" "))
  6252. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6253. this.taskCount
  6254. ].toolArray[this.toolIndex].createTime = nowTime
  6255. this.setPeople(this.unitIndex, this.taskCount, this.userid);
  6256. this.editSourceType = 1;
  6257. this.sourcesData = [];
  6258. this.dialogVisibleSource = false;
  6259. this.dialogVisibleTool = false;
  6260. this.setVHeight();
  6261. },
  6262. timestampToTime(times) {
  6263. let time = times[1]
  6264. let mdy = times[0]
  6265. mdy = mdy.split('/')
  6266. let month = parseInt(mdy[0]) > 9 ? parseInt(mdy[0]) : '0'+parseInt(mdy[0]);
  6267. let day = parseInt(mdy[1]) > 9 ? parseInt(mdy[1]) : '0'+parseInt(mdy[1]);
  6268. let year = parseInt(mdy[2])
  6269. return year + '-' + month + '-' + day + ' ' + time
  6270. },
  6271. openToolFun(tool, taskCount, i) {
  6272. this.taskCount = taskCount;
  6273. this.toolIndex = i;
  6274. if (tool == 48) {
  6275. const array =
  6276. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[taskCount]
  6277. .toolArray[i].toolPhoto;
  6278. let txt = "";
  6279. if (array.length) {
  6280. txt = JSON.parse(JSON.stringify(array[0].content));
  6281. }
  6282. // for (var l = 0; l < array.length; l++) {
  6283. // let _uid = array[l].userid
  6284. // if (_uid == this.userid) {
  6285. // txt = JSON.parse(JSON.stringify(array[l].content))
  6286. // break;
  6287. // }
  6288. // }
  6289. this.tableJson.text = txt
  6290. ? JSON.parse(txt)
  6291. : this.unitJson[this.unitIndex].chapterInfo[0].taskJson[taskCount]
  6292. .toolArray[i].table
  6293. ? JSON.parse(
  6294. JSON.stringify(
  6295. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[taskCount]
  6296. .toolArray[i].table
  6297. )
  6298. )
  6299. : "";
  6300. // this.tableJson.text = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[taskCount].toolArray[i].table ? JSON.parse(JSON.stringify(this.unitJson[this.unitIndex].chapterInfo[0].taskJson[taskCount].toolArray[i].table)) : ''
  6301. this.dialogVisibleTable = true;
  6302. } else if (tool == 15) {
  6303. this.answerQ = JSON.parse(
  6304. JSON.stringify(
  6305. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[taskCount]
  6306. .toolArray[i].answerQ
  6307. )
  6308. );
  6309. this.answerDialogVisible = true;
  6310. } else if (tool == 52) {
  6311. const array =
  6312. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[taskCount]
  6313. .toolArray[i].toolPhoto;
  6314. let txt = "";
  6315. if (array.length) {
  6316. txt = JSON.parse(JSON.stringify(array[0].content));
  6317. }
  6318. // for (var l = 0; l < array.length; l++) {
  6319. // let _uid = array[l].userid
  6320. // if (_uid == this.userid) {
  6321. // txt = JSON.parse(JSON.stringify(array[l].content))
  6322. // break;
  6323. // }
  6324. // }
  6325. this.tableJson.text = txt
  6326. ? JSON.parse(txt)
  6327. : JSON.parse(
  6328. JSON.stringify(
  6329. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[taskCount]
  6330. .toolArray[i].text
  6331. )
  6332. );
  6333. this.dialogVisibleText3 = true;
  6334. } else if (tool == 56) {
  6335. const array =
  6336. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[taskCount]
  6337. .toolArray[i].toolPhoto;
  6338. let txt = JSON.stringify([]);
  6339. for (var l = 0; l < array.length; l++) {
  6340. let _uid = array[l].userid;
  6341. if (_uid == this.userid) {
  6342. txt = JSON.parse(JSON.stringify(array[l].content));
  6343. break;
  6344. }
  6345. }
  6346. this.radio = JSON.parse(txt);
  6347. this.askJson = JSON.parse(
  6348. JSON.stringify(
  6349. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[taskCount]
  6350. .toolArray[i].askJson
  6351. )
  6352. );
  6353. this.dialogVisibleVote2 = true;
  6354. } else {
  6355. window.parent.postMessage(
  6356. {
  6357. tools: tool + "studio",
  6358. cid: this.cid,
  6359. stage: this.unitIndex,
  6360. task: taskCount,
  6361. tool: i,
  6362. },
  6363. "*"
  6364. );
  6365. if (tool == 1 || tool == 3 || tool == 6) {
  6366. this.setPeople(this.unitIndex, taskCount, this.userid);
  6367. }
  6368. }
  6369. },
  6370. previewImg(url) {
  6371. this.$hevueImgPreview(url);
  6372. },
  6373. scrollChange() {
  6374. this.rightBoxHeight = $(".rightBox")[0].scrollHeight;
  6375. },
  6376. openTable(content) {
  6377. this.tableJson.text = JSON.parse(content);
  6378. this.dialogVisibleTable2 = true;
  6379. },
  6380. addTaskBorder() {
  6381. this.unitJson[this.unitIndex].chapterInfo[0].taskJson.push({
  6382. task: "",
  6383. people: "",
  6384. time: "",
  6385. taskDetail: "",
  6386. chapterData: [],
  6387. toolText: "",
  6388. toolChoose: [
  6389. {
  6390. tool: [],
  6391. toolDetail: "",
  6392. toolType: 0,
  6393. askCount: 1,
  6394. askTitle: "",
  6395. askJson: [
  6396. {
  6397. askstitle: "",
  6398. askItem: 1,
  6399. checkList: [],
  6400. },
  6401. ],
  6402. },
  6403. ],
  6404. toolArray: [],
  6405. isShowTools: false,
  6406. askCount: 1,
  6407. isFold: 0,
  6408. askTitle: "",
  6409. askJson: [
  6410. {
  6411. askstitle: "",
  6412. askItem: 1,
  6413. checkList: [],
  6414. },
  6415. ],
  6416. checkJson: [
  6417. {
  6418. checkCount: [],
  6419. checkPerent: [],
  6420. },
  6421. ],
  6422. homeworkList: [],
  6423. });
  6424. },
  6425. add(e, i) {
  6426. var el = e.currentTarget;
  6427. el.getElementsByTagName("input")[0].click();
  6428. },
  6429. fold(i, e, type) {
  6430. var a = e.currentTarget.parentElement.parentElement;
  6431. var b = e.currentTarget.parentElement;
  6432. if (type == 1) {
  6433. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold = 1;
  6434. a.className += " smallTaskBorder";
  6435. b.className += " funBlockTop";
  6436. } else {
  6437. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold = 0;
  6438. a.className = "taskBorder";
  6439. b.className = "funBlock";
  6440. }
  6441. console.log(e);
  6442. },
  6443. deleteHomeworkBox(unitIndex, index, i) {
  6444. this.unitJson[unitIndex].chapterInfo[index].taskJson[
  6445. this.taskCount
  6446. ].homeworkList.splice(i, 1);
  6447. },
  6448. getStudent() {
  6449. let params = {
  6450. oid: this.oid,
  6451. cu: "",
  6452. cn: this.searchPeople,
  6453. };
  6454. this.ajax
  6455. .get(this.$store.state.api + "selectStudentAdd", params)
  6456. .then((res) => {
  6457. this.studentJuri = res.data[0];
  6458. })
  6459. .catch((err) => {
  6460. this.isLoading = false;
  6461. console.error(err);
  6462. });
  6463. },
  6464. onPlayerPlay() {},
  6465. getTeacher() {
  6466. let params = {
  6467. org:
  6468. this.org && this.org != "undefined" && this.org != "null"
  6469. ? this.org
  6470. : "",
  6471. oid: this.oid,
  6472. cu: "",
  6473. cn: this.searchTN,
  6474. page: this.page,
  6475. pageSize: this.pageSize,
  6476. };
  6477. this.ajax
  6478. .get(
  6479. this.$store.state.api +
  6480. (this.org && this.org != "undefined" && this.org != "null"
  6481. ? "selectUserByOidS2Studio"
  6482. : "selectUserByOidS2Studio"),
  6483. params
  6484. )
  6485. .then((res) => {
  6486. let teacherJuri = res.data[0];
  6487. this.total = res.data[0].length > 0 ? res.data[0][0].num : 0;
  6488. this.teacherJuri2 = JSON.parse(JSON.stringify(res.data[0]));
  6489. for (var i = 0; i < teacherJuri.length; i++) {
  6490. if (teacherJuri[i].userid == this.userid) {
  6491. teacherJuri.splice(i, 1);
  6492. break;
  6493. }
  6494. }
  6495. this.teacherJuri = teacherJuri;
  6496. })
  6497. .catch((err) => {
  6498. console.error(err);
  6499. });
  6500. },
  6501. setMan() {
  6502. let _unitJosn = this.unitJson;
  6503. // let teacherJuri = this.teacherJuri2;
  6504. this.ManAarray = [];
  6505. if (this.checkboxList3.indexOf(this.courseUserid) != -1) {
  6506. this.checkboxList3.splice(
  6507. this.checkboxList3.indexOf(this.courseUserid),
  6508. 1
  6509. );
  6510. }
  6511. let array = JSON.parse(JSON.stringify(this.checkboxList3));
  6512. if (array.indexOf(this.userid) == -1) {
  6513. array.push(this.userid);
  6514. }
  6515. if (array.indexOf(this.courseUserid) == -1) {
  6516. array.push(this.courseUserid);
  6517. }
  6518. for (var i = 0; i < _unitJosn.length; i++) {
  6519. let _chapter = _unitJosn[i].chapterInfo[0].taskJson;
  6520. for (var j = 0; j < _chapter.length; j++) {
  6521. let _task = _chapter[j];
  6522. if (array.indexOf(_task.people) == -1) {
  6523. _task.people = "";
  6524. }
  6525. if (_task.tcMember && _task.tcMember.length) {
  6526. let _tc = _task.tcMember;
  6527. let _tc2 = [];
  6528. for (var k = 0; k < _tc.length; k++) {
  6529. if (array.indexOf(_tc[k]) != -1) {
  6530. _tc2.push(_tc[k]);
  6531. }
  6532. }
  6533. _task.tcMember = _tc2;
  6534. }
  6535. }
  6536. }
  6537. let params = {
  6538. uid: array.join(","),
  6539. };
  6540. this.ajax
  6541. .get(this.$store.state.api + "getAllUserById", params)
  6542. .then((res) => {
  6543. let teacherJuri = res.data[0];
  6544. this.ManAarray = teacherJuri;
  6545. })
  6546. .catch((err) => {
  6547. console.error(err);
  6548. });
  6549. },
  6550. searchStudent() {
  6551. this.getStudent();
  6552. },
  6553. //获取班级列表
  6554. getClass() {
  6555. let params = {
  6556. oid: this.oid,
  6557. };
  6558. this.ajax
  6559. .get(this.$store.state.api + "selectClassBySchool", params)
  6560. .then((res) => {
  6561. this.grade = res.data[0];
  6562. })
  6563. .catch((err) => {
  6564. this.isLoading = false;
  6565. console.error(err);
  6566. });
  6567. },
  6568. getChapterData(e, i, j, ic, type) {
  6569. e.stopPropagation();
  6570. this.updataC = true;
  6571. this.icc = ic;
  6572. if ((type == 2 || type == 3) && e.target.tagName !== "INPUT") {
  6573. console.log("还不能下载图片喔");
  6574. }
  6575. },
  6576. getChapterData2(e, ic, type) {
  6577. e.stopPropagation();
  6578. this.updataC = true;
  6579. this.icc = ic;
  6580. if ((type == 2 || type == 3) && e.target.tagName !== "INPUT") {
  6581. console.log("还不能下载图片喔");
  6582. }
  6583. },
  6584. deleteChapterData(e, i, j, ic, taskI) {
  6585. e.stopPropagation();
  6586. this.unitJson[i].chapterInfo[j].taskJson[taskI].chapterData.splice(ic, 1);
  6587. },
  6588. deleteChapterData2(e, ic) {
  6589. e.stopPropagation();
  6590. this.sourcesData.splice(ic, 1);
  6591. },
  6592. updataVideoT(e, i, j, ic) {
  6593. e.stopPropagation();
  6594. this.unitJson[i].chapterInfo[j].taskJson[this.taskCount].chapterData[
  6595. ic
  6596. ].name = e.target.value;
  6597. },
  6598. updataVideoT2(e, ic) {
  6599. e.stopPropagation();
  6600. this.sourcesData[ic].name = e.target.value;
  6601. },
  6602. upCd(e, i, j, ic) {
  6603. e.stopPropagation();
  6604. if (ic == 0) {
  6605. return;
  6606. }
  6607. var a =
  6608. this.unitJson[i].chapterInfo[j].taskJson[this.taskCount].chapterData[
  6609. ic - 1
  6610. ];
  6611. this.unitJson[i].chapterInfo[j].taskJson[this.taskCount].chapterData[
  6612. ic - 1
  6613. ] =
  6614. this.unitJson[i].chapterInfo[j].taskJson[this.taskCount].chapterData[
  6615. ic
  6616. ];
  6617. this.unitJson[i].chapterInfo[j].taskJson[this.taskCount].chapterData[ic] =
  6618. a;
  6619. },
  6620. downCd(e, i, j, ic) {
  6621. e.stopPropagation();
  6622. if (
  6623. ic ==
  6624. this.unitJson[i].chapterInfo[j].taskJson[this.taskCount].chapterData
  6625. .length -
  6626. 1
  6627. ) {
  6628. return;
  6629. }
  6630. var a =
  6631. this.unitJson[i].chapterInfo[j].taskJson[this.taskCount].chapterData[
  6632. ic + 1
  6633. ];
  6634. this.unitJson[i].chapterInfo[j].taskJson[this.taskCount].chapterData[
  6635. ic + 1
  6636. ] =
  6637. this.unitJson[i].chapterInfo[j].taskJson[this.taskCount].chapterData[
  6638. ic
  6639. ];
  6640. this.unitJson[i].chapterInfo[j].taskJson[this.taskCount].chapterData[ic] =
  6641. a;
  6642. },
  6643. upCd2(e, ic) {
  6644. e.stopPropagation();
  6645. if (ic == 0) {
  6646. return;
  6647. }
  6648. var a = this.sourcesData[ic - 1];
  6649. this.sourcesData[ic - 1] = this.sourcesData[ic];
  6650. this.sourcesData[ic] = a;
  6651. this.$forceUpdate();
  6652. },
  6653. downCd2(e, ic) {
  6654. e.stopPropagation();
  6655. if (ic == this.sourcesData.length - 1) {
  6656. return;
  6657. }
  6658. var a = this.sourcesData[ic + 1];
  6659. this.sourcesData[ic + 1] = this.sourcesData[ic];
  6660. this.sourcesData[ic] = a;
  6661. this.$forceUpdate();
  6662. },
  6663. addWork() {
  6664. let cPan = 1;
  6665. for (var i = 0; i < this.unitJson.length; i++) {
  6666. for (
  6667. var j = 0;
  6668. j < this.unitJson[i].chapterInfo[0].taskJson.length;
  6669. j++
  6670. ) {
  6671. if (
  6672. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length > 1
  6673. ) {
  6674. for (
  6675. var z = 0;
  6676. z < this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length;
  6677. z++
  6678. ) {
  6679. if (
  6680. !this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[z].tool
  6681. .length
  6682. ) {
  6683. this.$message.error("请把工具添加完整");
  6684. cPan = 2;
  6685. break;
  6686. }
  6687. }
  6688. }
  6689. if (this.unitJson[i].chapterInfo[0].taskJson[j].eList) {
  6690. this.unitJson[i].chapterInfo[0].taskJson[j].eList = this.unitJson[
  6691. i
  6692. ].chapterInfo[0].taskJson[j].eList.filter((ele) => {
  6693. return ele.value != "";
  6694. });
  6695. }
  6696. }
  6697. }
  6698. if (cPan == 2) {
  6699. if (this.steps != 3) {
  6700. this.steps--;
  6701. }
  6702. return;
  6703. }
  6704. for (var i = 0; i < this.unitJson.length; i++) {
  6705. delete this.unitJson[i].isUpdate;
  6706. }
  6707. let params = [
  6708. {
  6709. uid: this.userid,
  6710. title: this.courseName,
  6711. brief: this.courseText,
  6712. cover:
  6713. this.cover.length > 0
  6714. ? JSON.stringify(this.cover)
  6715. : JSON.stringify([
  6716. {
  6717. name: "noBanner.jpg",
  6718. url: "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/wu1676621845022.png",
  6719. uid: 1656409780264,
  6720. status: "success",
  6721. },
  6722. ]),
  6723. evaId: this.evalua,
  6724. astudent:
  6725. this.checkboxList2.length > 0 ? this.checkboxList2.join(",") : "",
  6726. see: this.isTeacherSee == true ? 1 : 0,
  6727. chapters: JSON.stringify(this.unitJson),
  6728. template: this.cTemplate != "undefined" ? this.cTemplate : "",
  6729. courseType: JSON.stringify(this.courseTypeId),
  6730. ateacher:
  6731. this.checkboxList3.length > 0 ? this.checkboxList3.join(",") : "",
  6732. },
  6733. ];
  6734. this.ajax
  6735. .post(this.$store.state.api + "addStudioCourseWorkNew2", params)
  6736. .then((res) => {
  6737. console.log(this.steps);
  6738. if (this.steps != 1 && this.steps != 2 && this.steps != 3) {
  6739. this.$message({
  6740. message: "新增成功",
  6741. type: "success",
  6742. });
  6743. }
  6744. this.number = res.data.ordernumber;
  6745. this.courseId = res.data.courseId;
  6746. this.cid = res.data.courseId;
  6747. this.courseUserid = this.userid;
  6748. this.islogin = true;
  6749. this.selectCourseDetail();
  6750. })
  6751. .catch((err) => {
  6752. this.$message.error("网络不佳");
  6753. console.error(err);
  6754. });
  6755. },
  6756. goCourse() {
  6757. window.parent.postMessage(
  6758. {
  6759. cid: this.courseId,
  6760. type: "1",
  6761. },
  6762. "*"
  6763. );
  6764. },
  6765. updateWork2() {
  6766. let _unitIndex = this.unitIndex;
  6767. let cPan = 1;
  6768. for (
  6769. var j = 0;
  6770. j < this.unitJson[_unitIndex].chapterInfo[0].taskJson.length;
  6771. j++
  6772. ) {
  6773. // if (
  6774. // !this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].task
  6775. // ) {
  6776. // this.$message.error("请填写任务名称");
  6777. // cPan = 2
  6778. // break;
  6779. // }
  6780. // if (
  6781. // !this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].people
  6782. // ) {
  6783. // this.$message.error("请填写负责人");
  6784. // cPan = 2
  6785. // break;
  6786. // }
  6787. // if (
  6788. // !this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].time
  6789. // ) {
  6790. // this.$message.error("请填写任务起止时间");
  6791. // cPan = 2
  6792. // break;
  6793. // }
  6794. if (this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList) {
  6795. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList =
  6796. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList.filter(
  6797. (ele) => {
  6798. return ele.value != "";
  6799. }
  6800. );
  6801. }
  6802. }
  6803. if (cPan == 2) {
  6804. if (this.steps != 3) {
  6805. if (this.type == 2 && this.steps == 5) {
  6806. this.steps == 3;
  6807. } else {
  6808. this.steps--;
  6809. }
  6810. }
  6811. return;
  6812. }
  6813. let params = [
  6814. {
  6815. cid: this.cid,
  6816. chapters: JSON.stringify(this.unitJson),
  6817. uid: this.userid,
  6818. unitIndex: _unitIndex,
  6819. },
  6820. ];
  6821. this.ajax
  6822. .post(this.$store.state.api + "updateStudioWorkNew4", params)
  6823. .then((res) => {
  6824. if (
  6825. this.steps != 1 &&
  6826. this.steps != 2 &&
  6827. this.steps != 3 &&
  6828. this.steps != 4
  6829. ) {
  6830. this.$message({
  6831. message: "修改成功",
  6832. type: "success",
  6833. });
  6834. }
  6835. this.courseId = this.cid;
  6836. })
  6837. .catch((err) => {
  6838. this.$message.error("网络不佳");
  6839. console.error(err);
  6840. });
  6841. },
  6842. updateWork() {
  6843. let cPan = 1;
  6844. for (var i = 0; i < this.unitJson.length; i++) {
  6845. for (
  6846. var j = 0;
  6847. j < this.unitJson[i].chapterInfo[0].taskJson.length;
  6848. j++
  6849. ) {
  6850. // if (
  6851. // !this.unitJson[i].chapterInfo[0].taskJson[j].task
  6852. // ) {
  6853. // this.$message.error("请填写任务名称");
  6854. // cPan = 2
  6855. // break;
  6856. // }
  6857. // if (
  6858. // !this.unitJson[i].chapterInfo[0].taskJson[j].people
  6859. // ) {
  6860. // this.$message.error("请填写负责人");
  6861. // cPan = 2
  6862. // break;
  6863. // }
  6864. // if (
  6865. // !this.unitJson[i].chapterInfo[0].taskJson[j].time
  6866. // ) {
  6867. // this.$message.error("请填写任务起止时间");
  6868. // cPan = 2
  6869. // break;
  6870. // }
  6871. if (this.unitJson[i].chapterInfo[0].taskJson[j].eList) {
  6872. this.unitJson[i].chapterInfo[0].taskJson[j].eList = this.unitJson[
  6873. i
  6874. ].chapterInfo[0].taskJson[j].eList.filter((ele) => {
  6875. return ele.value != "";
  6876. });
  6877. }
  6878. }
  6879. }
  6880. if (cPan == 2) {
  6881. if (this.steps != 3) {
  6882. this.steps--;
  6883. }
  6884. return;
  6885. }
  6886. for (var i = 0; i < this.unitJson.length; i++) {
  6887. delete this.unitJson[i].isUpdate;
  6888. }
  6889. let params = [
  6890. {
  6891. cid: this.cid,
  6892. title: this.courseName,
  6893. brief: this.courseText,
  6894. cover:
  6895. this.cover.length > 0
  6896. ? JSON.stringify(this.cover)
  6897. : JSON.stringify([
  6898. {
  6899. name: "noBanner.jpg",
  6900. url: "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/wu1676621845022.png",
  6901. uid: 1656409780264,
  6902. status: "success",
  6903. },
  6904. ]),
  6905. evaId: this.evalua,
  6906. astudent:
  6907. this.checkboxList2.length > 0 ? this.checkboxList2.join(",") : "",
  6908. see: this.isTeacherSee == true ? 1 : 0,
  6909. chapters: JSON.stringify(this.unitJson),
  6910. template: this.myWord != "undefined" ? this.myWord : [],
  6911. uid: this.userid,
  6912. courseType: JSON.stringify(this.courseTypeId),
  6913. ateacher:
  6914. this.checkboxList3.length > 0 ? this.checkboxList3.join(",") : "",
  6915. },
  6916. ];
  6917. this.ajax
  6918. .post(this.$store.state.api + "updateStudioWorkNew2", params)
  6919. .then((res) => {
  6920. if (
  6921. this.steps != 1 &&
  6922. this.steps != 2 &&
  6923. this.steps != 3 &&
  6924. this.steps != 4
  6925. ) {
  6926. if (this.cidttt == 1) {
  6927. this.$message({
  6928. message: "修改成功",
  6929. type: "success",
  6930. });
  6931. } else {
  6932. this.$message({
  6933. message: "新增成功",
  6934. type: "success",
  6935. });
  6936. }
  6937. }
  6938. this.checkboxListPeople = JSON.parse(
  6939. JSON.stringify(this.checkboxList3)
  6940. );
  6941. this.number = this.nbOrder;
  6942. this.courseId = this.cid;
  6943. })
  6944. .catch((err) => {
  6945. this.$message.error("网络不佳");
  6946. console.error(err);
  6947. });
  6948. },
  6949. guid() {
  6950. var _num,
  6951. i,
  6952. _guid = "";
  6953. for (i = 0; i < 32; i++) {
  6954. _guid += Math.floor(Math.random() * 16).toString(16); //随机0 - 16 的数字 转变为16进制的字符串
  6955. _num = Math.floor((i - 7) / 4); //计算 (i-7)除4
  6956. if (_num > -1 && _num < 4 && i == 7 + 4 * _num) {
  6957. //会使guid中间加 "-" 形式为xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
  6958. _guid += "-";
  6959. }
  6960. }
  6961. return _guid;
  6962. },
  6963. insertWord() {
  6964. this.dialogVisible1 = true;
  6965. this.updateBoolean2 = false;
  6966. this.tTitle = "";
  6967. this.tdetail = "";
  6968. },
  6969. addWord() {
  6970. this.unitJson[this.unitIndex].chapterInfo[0].fileList1.push({
  6971. name: this.tTitle,
  6972. content: this.tdetail,
  6973. uid: this.guid(),
  6974. });
  6975. this.dialogVisible1 = false;
  6976. },
  6977. upWord() {},
  6978. selectWord(uid, i, c) {
  6979. this.dialogVisible1 = true;
  6980. this.updateBoolean2 = true;
  6981. if (
  6982. uid == this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].uid
  6983. ) {
  6984. this.tTitle =
  6985. this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].name;
  6986. this.tdetail =
  6987. this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].content;
  6988. }
  6989. },
  6990. isAddPP() {
  6991. if (this.checkboxList.length > 0) {
  6992. this.$message({
  6993. message: "添加成功",
  6994. type: "success",
  6995. });
  6996. this.dialogVisible3 = false;
  6997. } else {
  6998. this.$message({
  6999. message: "请添加项目成员",
  7000. type: "error",
  7001. });
  7002. }
  7003. },
  7004. isAddClass() {
  7005. this.dialogVisibleClass = false;
  7006. },
  7007. isAddPPTeacher() {
  7008. this.dialogVisibleMember = false;
  7009. // let array = JSON.parse(JSON.stringify(this.checkboxList3))
  7010. // if (array.indexOf(this.courseUserid || this.userid) == -1) {
  7011. // array.push(this.courseUserid || this.userid)
  7012. // }
  7013. this.setMan();
  7014. },
  7015. isAddPPTcTeacher() {
  7016. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7017. this.taskCount
  7018. ].tcMember = this.tcMember;
  7019. this.dialogVisibleTcMember = false;
  7020. },
  7021. addTcMember(index) {
  7022. this.taskCount = index;
  7023. // this.searchTN = ""
  7024. let tcMember = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7025. index
  7026. ].tcMember
  7027. ? this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index].tcMember
  7028. : [];
  7029. const people =
  7030. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index].people;
  7031. let ManAarray = JSON.parse(JSON.stringify(this.ManAarray));
  7032. for (var i = 0; i < ManAarray.length; i++) {
  7033. if (ManAarray[i].userid === people) {
  7034. ManAarray.splice(i, 1);
  7035. }
  7036. }
  7037. this.tcMember = tcMember;
  7038. this.ManAarray2 = ManAarray;
  7039. // this.getTeacher();
  7040. this.dialogVisibleTcMember = true;
  7041. },
  7042. peopleChange(people, index) {
  7043. let tcMember = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7044. index
  7045. ].tcMember
  7046. ? this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index].tcMember
  7047. : [];
  7048. if (tcMember.indexOf(people) != -1) {
  7049. tcMember.splice(tcMember.indexOf(people), 1);
  7050. }
  7051. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index].tcMember =
  7052. tcMember;
  7053. },
  7054. getTemplate() {
  7055. let params = {
  7056. oid: this.oid,
  7057. };
  7058. this.ajax
  7059. .get(this.$store.state.api + "getCourseTemplateTStudio", params)
  7060. .then((res) => {
  7061. this.templateArray = res.data[0];
  7062. this.getTemplateOrg();
  7063. this.$forceUpdate();
  7064. })
  7065. .catch((err) => {});
  7066. },
  7067. getTemplateOrg() {
  7068. let params = {
  7069. oid: this.org,
  7070. };
  7071. this.ajax
  7072. .get(this.$store.state.api + "getCourseTemplateTStudio", params)
  7073. .then((res) => {
  7074. if (res.data[0].length) {
  7075. let ta = res.data[0].filter(el => {
  7076. return el.oid
  7077. });
  7078. this.templateArray = [...ta, ...this.templateArray];
  7079. this.templateArray = this.templateArray.sort(function(a, b) {
  7080. return b.create_at < a.create_at? -1 : 1
  7081. })
  7082. }
  7083. this.$forceUpdate();
  7084. })
  7085. .catch((err) => { });
  7086. },
  7087. clearChoose() {
  7088. this.clearArray.splice(this.templateC.id, 1);
  7089. this.dialogVisible2 = false;
  7090. },
  7091. clearAttText() {
  7092. this.AttText = {
  7093. title: "",
  7094. text: "",
  7095. };
  7096. this.dialogVisible6 = false;
  7097. },
  7098. clearLine() {
  7099. this.line = "";
  7100. this.dialogVisible7 = false;
  7101. },
  7102. checkTemplate(res) {
  7103. let _this = this;
  7104. _this
  7105. .$confirm("确定选择此模板吗?", "提示", {
  7106. confirmButtonText: "确定",
  7107. cancelButtonText: "取消",
  7108. type: "warning",
  7109. })
  7110. .then(() => {
  7111. _this.unitJson = JSON.parse(res.chapters);
  7112. _this.steps++;
  7113. setTimeout(() => {
  7114. this.checkEva(this.checkId);
  7115. }, 1000);
  7116. })
  7117. .catch(() => {
  7118. return;
  7119. });
  7120. },
  7121. checkTemplate1(w) {
  7122. this.steps++;
  7123. },
  7124. checkTemplate2() {
  7125. let _this = this;
  7126. _this
  7127. .$confirm("确定选择空模板吗?", "提示", {
  7128. confirmButtonText: "确定",
  7129. cancelButtonText: "取消",
  7130. type: "warning",
  7131. })
  7132. .then(() => {
  7133. _this.unitJson = [
  7134. {
  7135. dyName: "", //单元标题
  7136. chapterInfo: [
  7137. {
  7138. isread: false,
  7139. chapterid: this.guid(),
  7140. title: "",
  7141. courseName: "",
  7142. taskJson: [
  7143. {
  7144. task: "",
  7145. people: "",
  7146. time: "",
  7147. taskDetail: "",
  7148. chapterData: [],
  7149. toolText: "",
  7150. toolChoose: [
  7151. {
  7152. tool: [],
  7153. toolDetail: "",
  7154. toolType: 0,
  7155. askCount: 1,
  7156. askTitle: "",
  7157. askJson: [
  7158. {
  7159. askstitle: "",
  7160. askItem: 1,
  7161. checkList: [],
  7162. },
  7163. ],
  7164. },
  7165. ],
  7166. toolArray: [],
  7167. isShowTools: false,
  7168. askCount: 1,
  7169. isFold: 0,
  7170. askTitle: "",
  7171. askJson: [
  7172. {
  7173. askstitle: "",
  7174. askItem: 1,
  7175. checkList: [],
  7176. },
  7177. ],
  7178. checkJson: [
  7179. {
  7180. checkCount: [],
  7181. checkPerent: [],
  7182. },
  7183. ],
  7184. homeworkList: [],
  7185. },
  7186. ],
  7187. itemCount: 1,
  7188. fileList1: [],
  7189. video: [],
  7190. testData: [],
  7191. pData: [],
  7192. templateArray: [],
  7193. },
  7194. ],
  7195. },
  7196. ];
  7197. this.steps++;
  7198. })
  7199. .catch(() => {
  7200. return;
  7201. });
  7202. },
  7203. wordNext() {
  7204. this.dialogVisible2 = false;
  7205. },
  7206. isAddOrUpdateAttText() {
  7207. if (this.AttTextType == 0) {
  7208. this.addAttTextMessage();
  7209. } else {
  7210. this.updateAttText();
  7211. }
  7212. },
  7213. isAddOrUpdateLine() {
  7214. if (!this.lineTitle) {
  7215. this.$message.error("请填写链接标题");
  7216. return;
  7217. }
  7218. if (this.lineType == 0) {
  7219. this.addLine();
  7220. } else {
  7221. this.updateLine();
  7222. }
  7223. },
  7224. addAttTextMessage() {
  7225. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7226. // this.taskCount
  7227. // ].chapterData.push({
  7228. // name: this.AttText.title,
  7229. // url: this.AttText.text,
  7230. // type: 6,
  7231. // });
  7232. // this.imgChange1(null, null, 6, this.taskCount);
  7233. // this.dialogVisible6 = false;
  7234. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount].toolArray.push({
  7235. // tool: 51,
  7236. // toolDetail: "",
  7237. // toolPhoto: "",
  7238. // toolEdit: false,
  7239. // toolId: this.guid(),
  7240. // toolData: {
  7241. // name: this.AttText.title,
  7242. // url: this.AttText.text,
  7243. // type: 6,
  7244. // }
  7245. // });
  7246. this.sourcesData.push({
  7247. name: this.AttText.title,
  7248. url: this.AttText.text,
  7249. type: 6,
  7250. });
  7251. this.dialogVisible6 = false;
  7252. // this.dialogVisibleSource = false;
  7253. },
  7254. selectAttText(itemTaskIndex, i) {
  7255. this.AttText.title =
  7256. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7257. itemTaskIndex
  7258. ].chapterData[i].name;
  7259. this.AttText.text =
  7260. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7261. itemTaskIndex
  7262. ].chapterData[i].url;
  7263. this.taskCount = itemTaskIndex;
  7264. this.AttTextIndex = i;
  7265. this.AttTextType = 1;
  7266. this.dialogVisible6 = true;
  7267. },
  7268. selectAttText2(i) {
  7269. this.AttText.title = this.sourcesData[i].name;
  7270. this.AttText.text = this.sourcesData[i].url;
  7271. this.AttTextIndex = i;
  7272. this.AttTextType = 1;
  7273. this.dialogVisible6 = true;
  7274. },
  7275. updateAttText() {
  7276. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7277. // this.taskCount
  7278. // ].chapterData[this.AttTextIndex].name = this.AttText.title;
  7279. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7280. // this.taskCount
  7281. // ].chapterData[this.AttTextIndex].url = this.AttText.text;
  7282. this.sourcesData[this.AttTextIndex].name = this.AttText.title;
  7283. this.sourcesData[this.AttTextIndex].url = this.AttText.text;
  7284. this.dialogVisible6 = false;
  7285. },
  7286. addLine() {
  7287. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7288. // this.lineCount
  7289. // ].chapterData.push({
  7290. // name: "链接",
  7291. // title: this.lineTitle,
  7292. // url: this.line,
  7293. // type: 8,
  7294. // });
  7295. // this.imgChange1(null, null, 8, this.lineCount);
  7296. // this.dialogVisible7 = false;
  7297. let src = "";
  7298. if (
  7299. this.line.indexOf("https://") == -1 &&
  7300. this.line.indexOf("http://") == -1
  7301. ) {
  7302. src = "https://" + this.line;
  7303. } else {
  7304. src = this.line;
  7305. }
  7306. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount].toolArray.push({
  7307. // tool: 51,
  7308. // toolDetail: "",
  7309. // toolPhoto: "",
  7310. // toolEdit: false,
  7311. // toolId: this.guid(),
  7312. // toolData: {
  7313. // name: "链接",
  7314. // // title: this.lineTitle,
  7315. // url: this.line,
  7316. // src: src,
  7317. // type: 8,
  7318. // }
  7319. // });
  7320. this.sourcesData.push({
  7321. name: "链接",
  7322. title: this.lineTitle,
  7323. url: this.line,
  7324. src: src,
  7325. type: 8,
  7326. });
  7327. this.dialogVisible7 = false;
  7328. // this.dialogVisibleSource = false;
  7329. },
  7330. selectLine(itemTaskIndex, i) {
  7331. this.line =
  7332. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7333. itemTaskIndex
  7334. ].chapterData[i].url;
  7335. this.lineTitle = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7336. itemTaskIndex
  7337. ].chapterData[i].title
  7338. ? this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7339. .chapterData[i].title
  7340. : "";
  7341. this.taskCount = itemTaskIndex;
  7342. this.lineCount = i;
  7343. this.lineType = 1;
  7344. this.dialogVisible7 = true;
  7345. },
  7346. selectLine2(i) {
  7347. this.line = this.sourcesData[i].url;
  7348. this.lineTitle = this.sourcesData[i].title
  7349. ? this.sourcesData[i].title
  7350. : "";
  7351. this.lineCount = i;
  7352. this.lineType = 1;
  7353. this.dialogVisible7 = true;
  7354. },
  7355. updateLine() {
  7356. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7357. // this.taskCount
  7358. // ].chapterData[this.lineCount].url = this.line;
  7359. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7360. // this.taskCount
  7361. // ].chapterData[this.lineCount].title = this.lineTitle;
  7362. if (!this.lineTitle) {
  7363. this.$message.error("请填写链接标题");
  7364. return;
  7365. }
  7366. this.sourcesData[this.lineCount].url = this.line;
  7367. this.sourcesData[this.lineCount].title = this.lineTitle;
  7368. this.dialogVisible7 = false;
  7369. },
  7370. addPP() {
  7371. this.dialogVisible3 = true;
  7372. },
  7373. goTo(path) {
  7374. this.$router.push(path);
  7375. },
  7376. openTools(itemTaskIndex, i, toolIndex) {
  7377. this.toolIndex = toolIndex;
  7378. this.taskCount = itemTaskIndex;
  7379. if (i == 4) {
  7380. if (toolIndex == null) {
  7381. var a =
  7382. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7383. .chapterData;
  7384. for (var i = 0; i < a.length; i++) {
  7385. if (a[i].url == 4 && a[i].askJson.askTitle != "") {
  7386. this.askJson =
  7387. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7388. itemTaskIndex
  7389. ].chapterData[i].askJson;
  7390. }
  7391. }
  7392. } else {
  7393. this.askJson = JSON.parse(
  7394. JSON.stringify(
  7395. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7396. itemTaskIndex
  7397. ].toolChoose[toolIndex]
  7398. )
  7399. );
  7400. }
  7401. this.dialogVisible5 = true;
  7402. } else if (i == 45) {
  7403. if (
  7404. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7405. .toolChoose[toolIndex].testJson
  7406. ) {
  7407. this.testJson = JSON.parse(
  7408. JSON.stringify(
  7409. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7410. itemTaskIndex
  7411. ].toolChoose[toolIndex].testJson
  7412. )
  7413. );
  7414. } else {
  7415. var testJson = {
  7416. testCount: 1,
  7417. testTitle: "",
  7418. testJson: [
  7419. {
  7420. teststitle: "",
  7421. testItem: 1,
  7422. checkList: [],
  7423. answer: [],
  7424. type: "1",
  7425. },
  7426. ],
  7427. };
  7428. this.testJson = testJson;
  7429. }
  7430. this.dialogVisibleChoice = true;
  7431. } else if (i == 47) {
  7432. if (
  7433. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7434. .toolChoose[toolIndex].sentenceList
  7435. ) {
  7436. this.sentenceList = JSON.parse(
  7437. JSON.stringify(
  7438. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7439. itemTaskIndex
  7440. ].toolChoose[toolIndex].sentenceList
  7441. )
  7442. );
  7443. } else {
  7444. var sentenceList = [
  7445. {
  7446. sentenceTitle: "",
  7447. addSentence: [],
  7448. rightAnswer: [],
  7449. },
  7450. ];
  7451. this.sentenceList = sentenceList;
  7452. }
  7453. this.dialogVisibleSentence = true;
  7454. } else if (i == 48) {
  7455. if (
  7456. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7457. .toolChoose[toolIndex].tableJson
  7458. ) {
  7459. this.tableJson = JSON.parse(
  7460. JSON.stringify(
  7461. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7462. itemTaskIndex
  7463. ].toolChoose[toolIndex].tableJson
  7464. )
  7465. );
  7466. } else {
  7467. var tableJson = {
  7468. text: "",
  7469. };
  7470. this.tableJson = tableJson;
  7471. }
  7472. this.dialogVisibleTable = true;
  7473. } else if (i == 49) {
  7474. if (
  7475. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7476. .toolChoose[toolIndex].groupJson
  7477. ) {
  7478. this.groupJson = JSON.parse(
  7479. JSON.stringify(
  7480. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7481. itemTaskIndex
  7482. ].toolChoose[toolIndex].groupJson
  7483. )
  7484. );
  7485. } else {
  7486. var groupJson = {
  7487. group: [
  7488. {
  7489. name: "第1组",
  7490. },
  7491. ],
  7492. number: undefined,
  7493. islock: 1,
  7494. };
  7495. this.groupJson = groupJson;
  7496. }
  7497. this.dialogVisibleGroup = true;
  7498. } else if (i == 15) {
  7499. this.answerQ = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7500. itemTaskIndex
  7501. ].toolChoose[toolIndex].answerQ
  7502. ? JSON.parse(
  7503. JSON.stringify(
  7504. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7505. itemTaskIndex
  7506. ].toolChoose[toolIndex].answerQ
  7507. )
  7508. )
  7509. : "";
  7510. this.dialogVisible8 = true;
  7511. } else if (i == 40) {
  7512. this.rateJson = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7513. itemTaskIndex
  7514. ].toolChoose[toolIndex].rateJson
  7515. ? JSON.parse(
  7516. JSON.stringify(
  7517. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7518. itemTaskIndex
  7519. ].toolChoose[toolIndex].rateJson
  7520. )
  7521. )
  7522. : [
  7523. {
  7524. detail: "",
  7525. score: 5,
  7526. value: "",
  7527. },
  7528. ]; //{detail:"",score:5,value:""}
  7529. this.selectSteps = 1;
  7530. this.dialogVisibleRate = true;
  7531. } else if (i == 42) {
  7532. this.answerQ = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7533. itemTaskIndex
  7534. ].toolChoose[toolIndex].answerQ
  7535. ? JSON.parse(
  7536. JSON.stringify(
  7537. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7538. itemTaskIndex
  7539. ].toolChoose[toolIndex].answerQ
  7540. )
  7541. )
  7542. : "";
  7543. this.dialogVisibleMp3 = true;
  7544. } else if (i == 41) {
  7545. this.selectJson = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7546. itemTaskIndex
  7547. ].toolChoose[toolIndex].selectJson
  7548. ? JSON.parse(
  7549. JSON.stringify(
  7550. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7551. itemTaskIndex
  7552. ].toolChoose[toolIndex].selectJson
  7553. )
  7554. )
  7555. : {
  7556. url: "",
  7557. select: [],
  7558. answer: [],
  7559. };
  7560. this.selectSteps = 1;
  7561. this.dialogVisibleSelect = true;
  7562. }
  7563. },
  7564. chapAddTools(i) {
  7565. if (this.chapTools[0].tools.length == 0) {
  7566. this.chapTools[0].tools.push(i);
  7567. } else {
  7568. if (this.chapTools[0].tools.indexOf(i) != -1) {
  7569. this.chapTools[0].tools.splice(this.chapTools[0].tools.indexOf(i), 1);
  7570. } else {
  7571. this.chapTools[0].tools.push(i);
  7572. }
  7573. }
  7574. this.$forceUpdate();
  7575. },
  7576. addChaptersDataTools() {
  7577. if (this.chapTools[0].tools.indexOf(4) != -1) {
  7578. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7579. this.chapCount
  7580. ].chapterData.push({
  7581. name: this.chapTools[0].toolDetail,
  7582. url: this.chapTools[0].tools,
  7583. type: 7,
  7584. askJson: this.askJson,
  7585. });
  7586. } else {
  7587. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7588. this.chapCount
  7589. ].chapterData.push({
  7590. name: this.chapTools[0].toolDetail,
  7591. url: this.chapTools[0].tools,
  7592. type: 7,
  7593. });
  7594. }
  7595. this.imgChange1(null, null, 7, this.chapCount);
  7596. this.dialogVisible4 = false;
  7597. },
  7598. addTools(i, itemTaskIndex, toolIndex) {
  7599. // if (
  7600. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7601. // .toolChoose[toolIndex].tool.length == 0
  7602. // ) {
  7603. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7604. // itemTaskIndex
  7605. // ].toolChoose[toolIndex].tool.push(i);
  7606. // } else {
  7607. // if (
  7608. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7609. // itemTaskIndex
  7610. // ].toolChoose[toolIndex].tool.indexOf(i) != -1
  7611. // ) {
  7612. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7613. // itemTaskIndex
  7614. // ].toolChoose[toolIndex].tool.splice(
  7615. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7616. // itemTaskIndex
  7617. // ].toolChoose[toolIndex].tool.indexOf(i),
  7618. // 1
  7619. // );
  7620. // } else {
  7621. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7622. // itemTaskIndex
  7623. // ].toolChoose[toolIndex].tool.push(i);
  7624. // }
  7625. // console.log(
  7626. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7627. // .toolChoose[toolIndex].tool
  7628. // );
  7629. // }
  7630. if (i == 4) {
  7631. if (
  7632. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7633. .toolChoose[toolIndex].askJson.askTitle == "" ||
  7634. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7635. .toolChoose[toolIndex].askJson[0].askstitle == "" ||
  7636. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7637. .toolChoose[toolIndex].askJson[0].checkList < 2
  7638. ) {
  7639. this.openTools(itemTaskIndex, 4, toolIndex);
  7640. // this.$message({
  7641. // message: "请填写完整问卷内容",
  7642. // type: "error",
  7643. // });
  7644. return;
  7645. }
  7646. }
  7647. if (i == 45) {
  7648. if (
  7649. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7650. .toolChoose[toolIndex].testJson ||
  7651. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7652. .toolChoose[toolIndex].testJson.testJson[0].teststitle == "" ||
  7653. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7654. .toolChoose[toolIndex].testJson.testJson[0].checkList < 2
  7655. ) {
  7656. this.openTools(itemTaskIndex, 45, toolIndex);
  7657. // this.$message({
  7658. // message: "请填写完整问卷内容",
  7659. // type: "error",
  7660. // });
  7661. return;
  7662. }
  7663. }
  7664. if (i == 47) {
  7665. if (
  7666. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7667. .toolChoose[toolIndex].sentenceList ||
  7668. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7669. .toolChoose[toolIndex].sentenceList[0].rightAnswer == 0
  7670. ) {
  7671. this.openTools(itemTaskIndex, 47, toolIndex);
  7672. return;
  7673. }
  7674. }
  7675. if (i == 48) {
  7676. if (
  7677. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7678. .toolChoose[toolIndex].tableJson
  7679. ) {
  7680. this.openTools(itemTaskIndex, 48, toolIndex);
  7681. return;
  7682. }
  7683. }
  7684. if (i == 49) {
  7685. if (
  7686. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7687. .toolChoose[toolIndex].groupJson
  7688. ) {
  7689. this.openTools(itemTaskIndex, 49, toolIndex);
  7690. return;
  7691. }
  7692. }
  7693. if (i == 15) {
  7694. if (
  7695. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7696. .toolChoose[toolIndex].answerQ ||
  7697. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7698. .toolChoose[toolIndex].answerQ == ""
  7699. ) {
  7700. this.openTools(itemTaskIndex, 15, toolIndex);
  7701. // this.$message({
  7702. // message: "请填写问答内容",
  7703. // type: "error",
  7704. // });
  7705. return;
  7706. }
  7707. }
  7708. if (i == 40) {
  7709. if (
  7710. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7711. .toolChoose[toolIndex].rateJson ||
  7712. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7713. .toolChoose[toolIndex].rateJson.length
  7714. ) {
  7715. this.openTools(itemTaskIndex, 40, toolIndex);
  7716. return;
  7717. }
  7718. }
  7719. if (i == 41) {
  7720. if (
  7721. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7722. .toolChoose[toolIndex].selectJson ||
  7723. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7724. .toolChoose[toolIndex].selectJson.url == "" ||
  7725. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7726. .toolChoose[toolIndex].selectJson.select.length ||
  7727. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7728. .toolChoose[toolIndex].selectJson.answer.length
  7729. ) {
  7730. this.openTools(itemTaskIndex, 41, toolIndex);
  7731. return;
  7732. }
  7733. }
  7734. if (i == 42) {
  7735. if (
  7736. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7737. .toolChoose[toolIndex].answerQ ||
  7738. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7739. .toolChoose[toolIndex].answerQ == ""
  7740. ) {
  7741. this.openTools(itemTaskIndex, 42, toolIndex);
  7742. return;
  7743. }
  7744. }
  7745. if (
  7746. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7747. .toolChoose[toolIndex].tool.length > 0
  7748. ) {
  7749. if (
  7750. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7751. itemTaskIndex
  7752. ].toolChoose[toolIndex].tool.indexOf(i) != -1
  7753. ) {
  7754. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7755. itemTaskIndex
  7756. ].toolChoose[toolIndex].tool.splice(
  7757. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7758. itemTaskIndex
  7759. ].toolChoose[toolIndex].tool.indexOf(i),
  7760. 1
  7761. );
  7762. } else {
  7763. // this.$message({
  7764. // message: "每个工具只能添加一个",
  7765. // type: "error",
  7766. // });
  7767. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7768. itemTaskIndex
  7769. ].toolChoose[toolIndex].tool = [];
  7770. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7771. itemTaskIndex
  7772. ].toolChoose[toolIndex].tool.push(i);
  7773. }
  7774. } else {
  7775. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7776. itemTaskIndex
  7777. ].toolChoose[toolIndex].tool.push(i);
  7778. }
  7779. this.$forceUpdate();
  7780. },
  7781. addAskList() {
  7782. this.askJson.askJson.push({
  7783. askstitle: "",
  7784. askItem: 1,
  7785. checkList: [],
  7786. });
  7787. this.askJson.askCount++;
  7788. },
  7789. addTestList() {
  7790. this.testJson.testJson.push({
  7791. teststitle: "",
  7792. testItem: 1,
  7793. checkList: [],
  7794. answer: [],
  7795. type: "1",
  7796. });
  7797. this.testJson.testCount++;
  7798. },
  7799. deleteAskList(index) {
  7800. this.askJson.askJson.splice(index, 1);
  7801. this.askJson.askCount--;
  7802. },
  7803. deleteTestList(index) {
  7804. this.testJson.testJson.splice(index, 1);
  7805. this.testJson.testCount--;
  7806. },
  7807. addcheckList(json) {
  7808. json.checkList.length++;
  7809. json.askItem++;
  7810. },
  7811. deletecheckList(json) {
  7812. json.checkList.length--;
  7813. json.askItem--;
  7814. },
  7815. addTcheckList(json) {
  7816. json.checkList.length++;
  7817. json.testItem++;
  7818. },
  7819. deleteTcheckList(json) {
  7820. json.checkList.length--;
  7821. json.testItem--;
  7822. },
  7823. checkTestType(type, json) {
  7824. json.type = type;
  7825. json.answer = [];
  7826. },
  7827. addSelectList(json) {
  7828. json.select.push("");
  7829. json.answer.push("");
  7830. },
  7831. deleteSelectList(json) {
  7832. // json.select.length--;
  7833. // json.answer.length--;
  7834. json.select.splice(json.select.length - 1, 1);
  7835. json.answer.splice(json.answer.length - 1, 1);
  7836. },
  7837. addAsk() {
  7838. if (this.askJson.askTitle === "") {
  7839. this.$message.error("标题不能为空!");
  7840. return;
  7841. }
  7842. var aj = this.askJson.askJson;
  7843. var b = 1;
  7844. for (var i = 0; i < aj.length; i++) {
  7845. if (aj[i].askstitle === "") {
  7846. var a = 1;
  7847. for (let index = 0; index < aj[i].askItem; index++) {
  7848. const element = aj[i].checkList[index]
  7849. ? aj[i].checkList[index]
  7850. : "";
  7851. if (element != "") {
  7852. b++;
  7853. this.$message.error(`请将题目${i+1}填写完整。`);
  7854. return;
  7855. } else {
  7856. a++;
  7857. }
  7858. }
  7859. if (b == 1) {
  7860. this.$message.error("至少填写一个问题");
  7861. return;
  7862. }
  7863. } else if (aj[i].askstitle != "") {
  7864. for (let index = 0; index < aj[i].askItem; index++) {
  7865. const element = aj[i].checkList[index]
  7866. ? aj[i].checkList[index]
  7867. : "";
  7868. var index = 0;
  7869. for (var z = 0; z < aj[i].checkList.length; z++) {
  7870. var checkC = aj[i].checkList[z] ? aj[i].checkList[z] : "";
  7871. if (checkC != "") {
  7872. index++;
  7873. } else {
  7874. this.$message.error(`题目${i+1}选项不能为空!`);
  7875. return;
  7876. }
  7877. }
  7878. b++;
  7879. if (index < 2) {
  7880. this.$message.error("填写了的题目,选项至少要有两项!");
  7881. return;
  7882. }
  7883. }
  7884. }
  7885. }
  7886. this.askJson.askJson = this.askJson.askJson.filter((el) => {
  7887. var elc = el.checkList.filter((element) => {
  7888. return element != "";
  7889. });
  7890. return el.askstitle != "" && elc.length != 0;
  7891. });
  7892. this.dialogVisibleTool = false;
  7893. this.dialogVisibleVote = false;
  7894. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7895. this.taskCount
  7896. ].toolArray.push({
  7897. tool: 56,
  7898. toolDetail: "",
  7899. toolPhoto: "",
  7900. toolEdit: false,
  7901. toolId: this.guid(),
  7902. askJson: JSON.parse(JSON.stringify(this.askJson)),
  7903. });
  7904. this.setPeople(this.unitIndex, this.taskCount, this.userid);
  7905. },
  7906. addTest() {
  7907. // if (this.testJson.testTitle === "") {
  7908. // this.$message.error("标题不能为空!");
  7909. // return;
  7910. // }
  7911. var aj = this.testJson.testJson;
  7912. var b = 1;
  7913. for (var i = 0; i < aj.length; i++) {
  7914. if (aj[i].teststitle === "") {
  7915. var a = 1;
  7916. for (let index = 0; index < aj[i].testItem; index++) {
  7917. const element = aj[i].checkList[index]
  7918. ? aj[i].checkList[index]
  7919. : "";
  7920. if (element != "") {
  7921. b++;
  7922. this.$message.error(`请将题目${i+1}填写完整。`);
  7923. return;
  7924. } else {
  7925. a++;
  7926. }
  7927. }
  7928. if (b == 1) {
  7929. this.$message.error("至少填写一个问题");
  7930. return;
  7931. }
  7932. } else if (aj[i].teststitle != "") {
  7933. for (let index = 0; index < aj[i].testItem; index++) {
  7934. const element = aj[i].checkList[index]
  7935. ? aj[i].checkList[index]
  7936. : "";
  7937. var index = 0;
  7938. for (var z = 0; z < aj[i].checkList.length; z++) {
  7939. var checkC = aj[i].checkList[z] ? aj[i].checkList[z] : "";
  7940. if (checkC != "") {
  7941. index++;
  7942. } else {
  7943. this.$message.error(`题目${i+1}选项不能为空!`);
  7944. return;
  7945. }
  7946. }
  7947. b++;
  7948. if (index < 2) {
  7949. this.$message.error("填写了的题目,选项至少要有两项!");
  7950. return;
  7951. }
  7952. if (
  7953. (aj[i].type == "2" && !aj[i].answer.length) ||
  7954. (aj[i].type == "1" && aj[i].answer !== 0 && !aj[i].answer)
  7955. ) {
  7956. this.$message.error("有题目未选择答案请选择答案");
  7957. return;
  7958. }
  7959. }
  7960. }
  7961. }
  7962. this.testJson.testJson = this.testJson.testJson.filter((el) => {
  7963. var elc = el.checkList.filter((element) => {
  7964. return element != "";
  7965. });
  7966. return el.teststitle != "" && elc.length != 0;
  7967. });
  7968. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7969. this.taskCount
  7970. ].toolChoose[this.toolIndex].testJson = this.testJson;
  7971. this.dialogVisibleChoice = false;
  7972. if (
  7973. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  7974. .toolChoose[this.toolIndex].tool != 45
  7975. ) {
  7976. this.addTools(45, this.taskCount, this.toolIndex);
  7977. }
  7978. },
  7979. addAnswer() {
  7980. if (this.answerQ == "") {
  7981. this.$message.error("请输入您想要问的问题");
  7982. return;
  7983. }
  7984. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7985. // this.taskCount
  7986. // ].toolChoose[this.toolIndex].answerQ = this.answerQ;
  7987. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7988. this.taskCount
  7989. ].toolArray.push({
  7990. tool: 15,
  7991. toolDetail: "",
  7992. toolPhoto: "",
  7993. toolEdit: false,
  7994. toolId: this.guid(),
  7995. answerQ: this.answerQ,
  7996. });
  7997. this.setPeople(this.unitIndex, this.taskCount, this.userid);
  7998. this.$forceUpdate();
  7999. this.dialogVisibleTool = false;
  8000. this.dialogVisible8 = false;
  8001. // if (
  8002. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  8003. // .toolChoose[this.toolIndex].tool != 15
  8004. // ) {
  8005. // this.addTools(15, this.taskCount, this.toolIndex);
  8006. // }
  8007. },
  8008. addText() {
  8009. if (this.tableJson.text == "" || this.tableJson.text == "<p></p>") {
  8010. this.$message.error("请填写信息!");
  8011. return;
  8012. }
  8013. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8014. this.taskCount
  8015. ].toolArray.push({
  8016. tool: 52,
  8017. toolDetail: "",
  8018. toolPhoto: "",
  8019. toolEdit: false,
  8020. toolId: this.guid(),
  8021. text: this.tableJson.text,
  8022. });
  8023. this.setPeople(this.unitIndex, this.taskCount, this.userid);
  8024. this.$forceUpdate();
  8025. this.dialogVisibleTool = false;
  8026. this.dialogVisibleText = false;
  8027. setTimeout(() => {
  8028. // this.openToolFun(52, this.taskCount, this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8029. // this.taskCount
  8030. // ].toolArray.length-1)
  8031. this.toolIndex =
  8032. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  8033. .toolArray.length - 1;
  8034. this.addTextJson();
  8035. }, 500);
  8036. // if (
  8037. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  8038. // .toolChoose[this.toolIndex].tool != 15
  8039. // ) {
  8040. // this.addTools(15, this.taskCount, this.toolIndex);
  8041. // }
  8042. },
  8043. addTable() {
  8044. if (this.tableJson.text == "" || this.tableJson.text == "<p></p>") {
  8045. this.$message.error("请填写信息!");
  8046. return;
  8047. }
  8048. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8049. this.taskCount
  8050. ].toolArray.push({
  8051. tool: 48,
  8052. toolDetail: "",
  8053. toolPhoto: "",
  8054. toolEdit: false,
  8055. toolId: this.guid(),
  8056. table: this.tableJson.text,
  8057. });
  8058. this.setPeople(this.unitIndex, this.taskCount, this.userid);
  8059. this.$forceUpdate();
  8060. this.dialogVisibleTool = false;
  8061. this.dialogVisibleTable1 = false;
  8062. setTimeout(() => {
  8063. // this.openToolFun(48, this.taskCount, this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8064. // this.taskCount
  8065. // ].toolArray.length-1)
  8066. this.toolIndex =
  8067. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  8068. .toolArray.length - 1;
  8069. this.addTableJson();
  8070. }, 500);
  8071. // if (
  8072. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  8073. // .toolChoose[this.toolIndex].tool != 15
  8074. // ) {
  8075. // this.addTools(15, this.taskCount, this.toolIndex);
  8076. // }
  8077. },
  8078. addMp3Answer() {
  8079. if (this.answerQ == "") {
  8080. this.$message.error("请输入您想要回答的问题");
  8081. return;
  8082. }
  8083. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8084. this.taskCount
  8085. ].toolChoose[this.toolIndex].answerQ = this.answerQ;
  8086. this.dialogVisibleMp3 = false;
  8087. },
  8088. addRateAnswer() {
  8089. var a = 1;
  8090. for (var i = 0; i < this.rateJson.length; i++) {
  8091. if (this.rateJson[i].value == "") {
  8092. a = 2;
  8093. break;
  8094. }
  8095. }
  8096. if (a == 2) {
  8097. this.$message.error("请把评价信息填写完整");
  8098. return;
  8099. }
  8100. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8101. this.taskCount
  8102. ].toolChoose[this.toolIndex].rateJson = this.rateJson;
  8103. this.dialogVisibleRate = false;
  8104. if (
  8105. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  8106. .toolChoose[this.toolIndex].tool != 40
  8107. ) {
  8108. this.addTools(40, this.taskCount, this.toolIndex);
  8109. }
  8110. },
  8111. addSelectAnswer() {
  8112. if (this.selectJson.url == "") {
  8113. this.$message.error("请上传题目");
  8114. return;
  8115. }
  8116. if (!this.selectJson.select.length) {
  8117. this.$message.error("请添加选项");
  8118. return;
  8119. }
  8120. if (!this.selectJson.answer.length) {
  8121. this.$message.error("请设置答案");
  8122. return;
  8123. }
  8124. var a = 1;
  8125. for (var i = 0; i < this.selectJson.answer.length; i++) {
  8126. if (!this.selectJson.answer[i] && this.selectJson.answer[i] !== 0) {
  8127. a = 2;
  8128. }
  8129. }
  8130. if (a == 2) {
  8131. this.$message.error("请设置答案");
  8132. return;
  8133. }
  8134. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8135. this.taskCount
  8136. ].toolChoose[this.toolIndex].selectJson = this.selectJson;
  8137. this.dialogVisibleSelect = false;
  8138. if (
  8139. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  8140. .toolChoose[this.toolIndex].tool != 41
  8141. ) {
  8142. this.addTools(41, this.taskCount, this.toolIndex);
  8143. }
  8144. },
  8145. nextSelectSteps() {
  8146. if (this.selectJson.url == "") {
  8147. this.$message.error("请上传题目");
  8148. return;
  8149. }
  8150. if (!this.selectJson.select.length) {
  8151. this.$message.error("请添加选项");
  8152. return;
  8153. }
  8154. var a = 1;
  8155. for (var i = 0; i < this.selectJson.select.length; i++) {
  8156. if (!this.selectJson.select[i]) {
  8157. a = 2;
  8158. }
  8159. }
  8160. if (a == 2) {
  8161. this.$message.error("添加的选项不能为空");
  8162. return;
  8163. }
  8164. this.selectSteps++;
  8165. },
  8166. selectCourseDetail() {
  8167. if (this.cid == "" || this.cid == undefined) {
  8168. console.log("这是新增项目");
  8169. this.selectAllType();
  8170. this.cidttt = 0;
  8171. } else {
  8172. this.cidType = 1;
  8173. let params = {
  8174. cid: this.cid,
  8175. };
  8176. this.ajax
  8177. .get(this.$store.state.api + "select_studio_course_detail2", params)
  8178. .then((res) => {
  8179. this.loading = true;
  8180. this.unitJson = JSON.parse(res.data[0][0].chapters);
  8181. for (var j in this.unitJson) {
  8182. for (var i in this.unitJson[j].chapterInfo) {
  8183. this.unitJson[j].chapterInfo[i].taskJson[
  8184. this.taskCount
  8185. ].toolChoose = this.unitJson[j].chapterInfo[i].taskJson[
  8186. this.taskCount
  8187. ].toolChoose
  8188. ? this.unitJson[j].chapterInfo[i].taskJson[this.taskCount]
  8189. .toolChoose
  8190. : [];
  8191. for (var k in this.unitJson[j].chapterInfo[i].taskJson) {
  8192. let _chapterData = [];
  8193. for (var c in this.unitJson[j].chapterInfo[i].taskJson[k]
  8194. .chapterData) {
  8195. if (
  8196. this.unitJson[j].chapterInfo[i].taskJson[k].chapterData[c]
  8197. ) {
  8198. _chapterData.push(
  8199. this.unitJson[j].chapterInfo[i].taskJson[k].chapterData[
  8200. c
  8201. ]
  8202. );
  8203. }
  8204. }
  8205. this.unitJson[j].chapterInfo[i].taskJson[k].chapterData =
  8206. _chapterData;
  8207. let _task = this.unitJson[j].chapterInfo[i].taskJson[k].toolArray
  8208. for(var _tool = 0;_tool<_task.length;_tool++){
  8209. delete _task[_tool].proVisible
  8210. }
  8211. }
  8212. }
  8213. }
  8214. this.courseName = res.data[0][0].title;
  8215. this.courseText = res.data[0][0].brief;
  8216. this.evalua = res.data[0][0].evaId;
  8217. this.cover = JSON.parse(res.data[0][0].cover);
  8218. this.noneBtnImg = this.cover.length >= 1;
  8219. // this.checkboxList =
  8220. // res.data[0][0].course_student.length > 0
  8221. // ? JSON.parse(res.data[0][0].course_student)
  8222. // : [];
  8223. this.checkboxList2 = res.data[0][0].juri
  8224. ? res.data[0][0].juri.split(",")
  8225. : [];
  8226. this.checkboxList3 = res.data[0][0].course_teacher
  8227. ? res.data[0][0].course_teacher.split(",")
  8228. : [];
  8229. this.checkboxListPeople = res.data[0][0].course_teacher
  8230. ? res.data[0][0].course_teacher.split(",")
  8231. : [];
  8232. // this.isTeacherSee =
  8233. // res.data[0][0].is_teacher_look == 0 ? true : false;
  8234. this.isTeacherSee = res.data[0][0].open == 1 ? true : false;
  8235. this.myWord = res.data[0][0].template;
  8236. this.templateC.id = "123";
  8237. this.courseUserid = res.data[0][0].userid;
  8238. this.nbOrder = res.data[0][0].ordernumber;
  8239. if (res.data[1].length) {
  8240. this.courseTypeId = [];
  8241. for (var i = 0; i < res.data[1].length; i++) {
  8242. this.courseTypeId.push(res.data[1][i].typeid);
  8243. }
  8244. }
  8245. console.log(this.courseTypeId);
  8246. // if (this.timer) clearInterval(this.timer);
  8247. if (this.timer) clearTimeout(this.timer);
  8248. this.timer = null;
  8249. // this.timer = setInterval(() => {
  8250. this.seleteCourseUpdate();
  8251. this.setMan();
  8252. this.selectAllType();
  8253. // }, 5000);
  8254. this.$forceUpdate();
  8255. setTimeout(() => {
  8256. this.checkEva(this.evalua);
  8257. }, 0);
  8258. })
  8259. .catch((err) => {
  8260. console.error(err);
  8261. });
  8262. }
  8263. },
  8264. seleteCourseUpdate() {
  8265. let params = {
  8266. cid: this.cid,
  8267. };
  8268. this.ajax
  8269. .get(this.$store.state.api + "select_studio_course_detail", params)
  8270. .then((res) => {
  8271. console.log(res.data[2]);
  8272. let unitJson = this.unitJson;
  8273. let works = res.data[2];
  8274. for (var i = 0; i < unitJson.length; i++) {
  8275. let task = unitJson[i].chapterInfo[0].taskJson;
  8276. for (var j = 0; j < task.length; j++) {
  8277. var tool = task[j].toolArray;
  8278. for (var z = 0; z < tool.length; z++) {
  8279. let _tool = tool[z];
  8280. _tool.toolPhoto = [];
  8281. _tool.people = [];
  8282. this.checkJson[z] = [];
  8283. let checkPeople = 0;
  8284. for (var k = 0; k < works.length; k++) {
  8285. let _work = works[k];
  8286. if (
  8287. _work.stage == i &&
  8288. _work.task == j &&
  8289. _work.tool == z &&
  8290. _work.atool == _tool.tool
  8291. ) {
  8292. if (_tool.tool == 48 || _tool.tool == 52) {
  8293. _tool.toolPhoto[0] = _work;
  8294. if (_tool.people.indexOf(_work.username) == -1) {
  8295. _tool.people.push(_work.username);
  8296. }
  8297. } else {
  8298. _tool.toolPhoto.push(_work);
  8299. }
  8300. if (_tool.tool == 56) {
  8301. checkPeople++;
  8302. var checkL = JSON.parse(_work.content);
  8303. for (var kz = 0; kz < checkL.length; kz++) {
  8304. if (!this.checkJson[z][kz]) {
  8305. this.checkJson[z].push({
  8306. checkCount: [],
  8307. checkPerson: [],
  8308. rightPerson: [],
  8309. });
  8310. }
  8311. if (!this.checkJson[z][kz].checkCount.length) {
  8312. this.checkJson[z][kz].checkCount = [];
  8313. let _askItemCount = _tool.askJson.askJson[kz].askItem;
  8314. for (var aic = 0; aic < _askItemCount; aic++) {
  8315. this.checkJson[z][kz].checkCount.push(0);
  8316. }
  8317. }
  8318. this.checkJson[z][kz].checkPerson[parseInt(checkL[kz])]
  8319. ? this.checkJson[z][kz].checkPerson[
  8320. parseInt(checkL[kz])
  8321. ].push(_work.username)
  8322. : (this.checkJson[z][kz].checkPerson[
  8323. parseInt(checkL[kz])
  8324. ] = [_work.username]);
  8325. this.checkJson[z][kz].checkCount[parseInt(checkL[kz])]
  8326. ? this.checkJson[z][kz].checkCount[
  8327. parseInt(checkL[kz])
  8328. ]++
  8329. : (this.checkJson[z][kz].checkCount[
  8330. parseInt(checkL[kz])
  8331. ] = 1);
  8332. }
  8333. }
  8334. }
  8335. }
  8336. for (var kz = 0; kz < this.checkJson[z].length; kz++) {
  8337. this.checkJson[z][kz].checkPerent = [];
  8338. let aaaa = this.checkJson[z][kz];
  8339. console.log(aaaa);
  8340. for (
  8341. var kc = 0;
  8342. kc < this.checkJson[z][kz].checkCount.length;
  8343. kc++
  8344. ) {
  8345. this.checkJson[z][kz].checkPerent.push(
  8346. Math.round(
  8347. (this.checkJson[z][kz].checkCount[kc] / checkPeople) *
  8348. 100
  8349. )
  8350. );
  8351. }
  8352. }
  8353. }
  8354. }
  8355. }
  8356. this.$forceUpdate();
  8357. if (this.timer) {
  8358. clearTimeout(this.timer);
  8359. this.timer = null;
  8360. }
  8361. this.timer = setTimeout(() => {
  8362. this.seleteCourseUpdate();
  8363. }, 1000);
  8364. })
  8365. .catch((err) => {
  8366. console.error(err);
  8367. });
  8368. },
  8369. restoreWork(chapid, unitJson, chapindex, unitJson2, unitIndex2) {
  8370. let params = [
  8371. {
  8372. cid: this.cid,
  8373. chapters: JSON.stringify(this.unitJson),
  8374. uid: this.userid,
  8375. chapid: chapid,
  8376. },
  8377. ];
  8378. this.ajax
  8379. .post(this.$store.state.api + "restoreStudioWork", params)
  8380. .then((res) => {
  8381. this.$message({
  8382. message: "恢复成功",
  8383. type: "success",
  8384. });
  8385. unitJson.splice(chapindex, 0, unitJson2[chapindex]);
  8386. this.unitJson = unitJson;
  8387. this.$forceUpdate();
  8388. setTimeout(() => {
  8389. if (this.unitIndex != unitIndex2) {
  8390. this.isDelete = 2;
  8391. this.unitIndex = unitIndex2;
  8392. }
  8393. }, 0);
  8394. this.timer = setTimeout(() => {
  8395. this.seleteCourseUpdate();
  8396. }, 1000);
  8397. })
  8398. .catch((err) => {
  8399. this.$message.error("网络不佳");
  8400. console.error(err);
  8401. });
  8402. },
  8403. getTypeName() {
  8404. console.log(this.courseTypeId);
  8405. this.$forceUpdate();
  8406. },
  8407. selectAllType() {
  8408. let params = {
  8409. org: this.org && this.org != "" ? this.org : "",
  8410. oid: this.oid && this.oid != "" ? this.oid : "",
  8411. };
  8412. this.ajax
  8413. .get(this.$store.state.api + "selectAllTypeStudio", params)
  8414. .then((res) => {
  8415. this.CourseType = res.data;
  8416. let _courseTypeId = [];
  8417. for (var i = 0; i < res.data[0].length; i++) {
  8418. if(res.data[0][i].id == "2f8beae3-d030-11ec-8c78-005056b86abc"){
  8419. res.data[0][i].name = "类型";
  8420. }else if(res.data[0][i].id == "34629ce3-d02f-11ec-8c78-005056b86abc"){
  8421. res.data[0][i].name = "主题";
  8422. }else if(res.data[0][i].id == "34629bcc-d02f-11ec-8c78-005056b86abc"){
  8423. res.data[0][i].name = "对象";
  8424. }
  8425. if (!this.cid) {
  8426. this.courseTypeId[res.data[0][i].id] = "";
  8427. }
  8428. this.CourseTypeJson[res.data[0][i].id] = [];
  8429. if (res.data[2].length == 0 && res.data[3].length == 0) {
  8430. for (var j = 0; j < res.data[1].length; j++) {
  8431. if (
  8432. this.courseTypeId.indexOf(res.data[1][j].id) != -1 &&
  8433. _courseTypeId.indexOf(res.data[1][j].id) == -1
  8434. ) {
  8435. _courseTypeId.push(res.data[1][j].id);
  8436. }
  8437. if (res.data[0][i].id == res.data[1][j].pid) {
  8438. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]); // 去除公共分类
  8439. }
  8440. }
  8441. } else {
  8442. if (res.data[2].length > 0) {
  8443. for (var j = 0; j < res.data[2].length; j++) {
  8444. if (
  8445. this.courseTypeId.indexOf(res.data[2][j].id) != -1 &&
  8446. _courseTypeId.indexOf(res.data[2][j].id) == -1
  8447. ) {
  8448. _courseTypeId.push(res.data[2][j].id);
  8449. }
  8450. if (res.data[0][i].id == res.data[2][j].pid) {
  8451. this.CourseTypeJson[res.data[0][i].id].push(res.data[2][j]); // 去除公共分类
  8452. }
  8453. }
  8454. }
  8455. if (res.data[3].length > 0) {
  8456. for (var j = 0; j < res.data[3].length; j++) {
  8457. if (
  8458. this.courseTypeId.indexOf(res.data[3][j].id) != -1 &&
  8459. _courseTypeId.indexOf(res.data[3][j].id) == -1
  8460. ) {
  8461. _courseTypeId.push(res.data[3][j].id);
  8462. }
  8463. if (res.data[0][i].id == res.data[3][j].pid) {
  8464. this.CourseTypeJson[res.data[0][i].id].push(res.data[3][j]); // 去除公共分类
  8465. }
  8466. }
  8467. }
  8468. }
  8469. }
  8470. this.courseTypeId = _courseTypeId;
  8471. })
  8472. .catch((err) => {
  8473. console.error(err);
  8474. });
  8475. },
  8476. selectType() {
  8477. this.ajax
  8478. .get(this.$store.state.api + "selectStudioType")
  8479. .then((res) => {
  8480. this.CourseType = res.data;
  8481. for (var i = 0; i < res.data[0].length; i++) {
  8482. if (!this.cid) {
  8483. this.courseTypeId[res.data[0][i].id] = "";
  8484. }
  8485. for (var j = 0; j < res.data[1].length; j++) {
  8486. if (res.data[0][i].id == res.data[1][j].pid) {
  8487. if (!this.CourseTypeJson[res.data[0][i].id]) {
  8488. this.CourseTypeJson[res.data[0][i].id] = [];
  8489. }
  8490. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]); // 去除公共分类
  8491. }
  8492. }
  8493. }
  8494. this.selectTypeByOid();
  8495. this.selectTypeByOrg();
  8496. })
  8497. .catch((err) => {
  8498. console.error(err);
  8499. });
  8500. },
  8501. selectTypeByOid() {
  8502. let params = {
  8503. oid: this.oid,
  8504. };
  8505. this.ajax
  8506. .get(this.$store.state.api + "selectStudioTypeByOid", params)
  8507. .then((res) => {
  8508. for (var i = 0; i < res.data[0].length; i++) {
  8509. for (var j = 0; j < res.data[1].length; j++) {
  8510. if (res.data[0][i].id == res.data[1][j].pid) {
  8511. if (!this.CourseTypeJson[res.data[0][i].id]) {
  8512. this.CourseTypeJson[res.data[0][i].id] = [];
  8513. }
  8514. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]);
  8515. }
  8516. }
  8517. }
  8518. })
  8519. .catch((err) => {
  8520. console.error(err);
  8521. });
  8522. },
  8523. selectTypeByOrg() {
  8524. let params = {
  8525. oid: this.org,
  8526. };
  8527. this.ajax
  8528. .get(this.$store.state.api + "selectStudioTypeByOid", params)
  8529. .then((res) => {
  8530. for (var i = 0; i < res.data[0].length; i++) {
  8531. for (var j = 0; j < res.data[1].length; j++) {
  8532. if (res.data[0][i].id == res.data[1][j].pid) {
  8533. if (!this.CourseTypeJson[res.data[0][i].id]) {
  8534. this.CourseTypeJson[res.data[0][i].id] = [];
  8535. }
  8536. this.CourseTypeJson[res.data[0][i].id].unshift(res.data[1][j]);
  8537. }
  8538. }
  8539. }
  8540. this.$forceUpdate();
  8541. })
  8542. .catch((err) => {
  8543. console.error(err);
  8544. });
  8545. },
  8546. OtherMb(type) {
  8547. this.typeMode = type;
  8548. setTimeout(() => {
  8549. this.checkEva(this.checkId);
  8550. }, 0);
  8551. },
  8552. checkEva(id) {
  8553. this.selectEva();
  8554. this.evalua = id;
  8555. this.checkId = id;
  8556. if (this.evalua != "") {
  8557. for (var i = 0; i < this.evaJuri.length; i++) {
  8558. if (this.evalua == this.evaJuri[i].id) {
  8559. this.eTitle = this.evaJuri[i].title;
  8560. this.eJson = JSON.parse(this.evaJuri[i].content);
  8561. }
  8562. }
  8563. this.data.data = [];
  8564. this.$forceUpdate();
  8565. setTimeout(() => {
  8566. this.setMindData();
  8567. }, 500);
  8568. }
  8569. },
  8570. selectEva() {
  8571. let params = {
  8572. oid: this.oid,
  8573. };
  8574. this.ajax
  8575. .get(this.$store.state.api + "selectAllEvaluation", params)
  8576. .then((res) => {
  8577. this.evaJuri = res.data[0];
  8578. })
  8579. .catch((err) => {
  8580. console.error(err);
  8581. });
  8582. },
  8583. setMindData() {
  8584. let targetArray = [];
  8585. this.data.data = [];
  8586. this.data.data.push({
  8587. id: "root",
  8588. isroot: true,
  8589. topic: this.eTitle,
  8590. });
  8591. let _eJson = Object.keys(this.eJson);
  8592. let _e = this.eJson;
  8593. for (let i = 0; i < _eJson.length; i++) {
  8594. let element = _e[_eJson[i]];
  8595. this.data.data.push({
  8596. id: element.id,
  8597. parentid: "root",
  8598. topic: element.name,
  8599. });
  8600. // targetArray.push({
  8601. // id: element.id,
  8602. // parentid: "root",
  8603. // name: element.name,
  8604. // });
  8605. targetArray.push({
  8606. value: element.name,
  8607. label: element.name,
  8608. children: [],
  8609. });
  8610. let _eJsonc = Object.keys(element.child);
  8611. let _e2 = element.child;
  8612. for (let j = 0; j < _eJsonc.length; j++) {
  8613. let _ec = _e2[_eJsonc[j]];
  8614. this.data.data.push({
  8615. id: _ec.id,
  8616. parentid: element.id,
  8617. topic: _ec.name,
  8618. });
  8619. // targetArray.push({
  8620. // id: _ec.id,
  8621. // parentid: element.id,
  8622. // name: _ec.name,
  8623. // });
  8624. targetArray[i].children.push({
  8625. value: _ec.name,
  8626. label: _ec.name,
  8627. children: [],
  8628. });
  8629. let _eJsonz = Object.keys(_ec.child);
  8630. let _e3 = _ec.child;
  8631. for (let z = 0; z < _eJsonz.length; z++) {
  8632. let _ez = _e3[_eJsonz[z]];
  8633. this.data.data.push({
  8634. id: _ez.id,
  8635. parentid: _ec.id,
  8636. topic: _ez.name,
  8637. });
  8638. // targetArray.push({
  8639. // id: _ez.id,
  8640. // parentid: _ec.id,
  8641. // name: _ez.name,
  8642. // });
  8643. targetArray[i].children[j].children.push({
  8644. value: _ez.name,
  8645. label: _ez.name,
  8646. });
  8647. }
  8648. }
  8649. }
  8650. this.targetArray = targetArray;
  8651. this.$forceUpdate();
  8652. },
  8653. /*添加评价 */
  8654. addEList(index, tIndex) {
  8655. this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList
  8656. ? this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList.push({
  8657. value: "",
  8658. detail: "",
  8659. score: 5,
  8660. })
  8661. : (this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList = [
  8662. {
  8663. value: "",
  8664. detail: "",
  8665. score: 5,
  8666. },
  8667. ]);
  8668. this.$forceUpdate();
  8669. },
  8670. forceUpdate() {
  8671. this.$forceUpdate();
  8672. },
  8673. deletEList(index, tIndex, eIndex) {
  8674. this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList.splice(
  8675. eIndex,
  8676. 1
  8677. );
  8678. this.$forceUpdate();
  8679. },
  8680. getChoosePic(t) {
  8681. this.chooseType = t;
  8682. this.getAllBanner();
  8683. },
  8684. getAllBanner() {
  8685. this.sysPicVisible = true;
  8686. let params = {
  8687. t: this.chooseType,
  8688. };
  8689. this.ajax
  8690. .get(this.$store.state.api + "selectAllBanner", params)
  8691. .then((res) => {
  8692. this.sysPic = res.data[0];
  8693. })
  8694. .catch((err) => {
  8695. console.error(err);
  8696. });
  8697. },
  8698. deleteSysPic() {
  8699. this.cover = [];
  8700. this.isSysPic = false;
  8701. },
  8702. deleteSelectPic() {
  8703. this.selectJson.url = "";
  8704. },
  8705. setEListStar() {
  8706. this.$forceUpdate();
  8707. },
  8708. deletRateList(i) {
  8709. this.rateJson.splice(i, 1);
  8710. },
  8711. addRateList() {
  8712. this.rateJson.push({
  8713. detail: "",
  8714. score: 5,
  8715. value: "",
  8716. });
  8717. },
  8718. addSt() {
  8719. this.sentenceList.push({
  8720. sentenceTitle: "",
  8721. addSentence: [],
  8722. rightAnswer: [],
  8723. });
  8724. },
  8725. addSen(i) {
  8726. this.sentenceList[i].addSentence.push(this.sentenceList[i].sentenceTitle);
  8727. // this.isPushTitleList.push(this.sentenceTitle);
  8728. this.sentenceList[i].sentenceTitle = "";
  8729. },
  8730. setRightAnswer(s, i, j) {
  8731. if (this.sentenceList[i].rightAnswer.indexOf(s) == -1) {
  8732. this.sentenceList[i].rightAnswer.push(s);
  8733. }
  8734. },
  8735. returnCard(r, i, j) {
  8736. this.sentenceList[i].rightAnswer.splice(j, 1);
  8737. },
  8738. addSentenceTool() {
  8739. for (var i = 0; i < this.sentenceList.length; i++) {
  8740. if (this.sentenceList[i].rightAnswer.length == 0) {
  8741. this.$message.error("请将信息填写完整!");
  8742. return;
  8743. }
  8744. if (
  8745. this.sentenceList[i].addSentence.length !=
  8746. this.sentenceList[i].rightAnswer.length
  8747. ) {
  8748. this.$message.error("请将信息填写完整!");
  8749. return;
  8750. }
  8751. }
  8752. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8753. this.taskCount
  8754. ].toolChoose[this.toolIndex].sentenceList = this.sentenceList;
  8755. this.sentenceList = [
  8756. {
  8757. sentenceTitle: "",
  8758. addSentence: [],
  8759. rightAnswer: [],
  8760. },
  8761. ];
  8762. this.dialogVisibleSentence = false;
  8763. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8764. // itemTaskIndex
  8765. // ].toolChoose[toolIndex].tool = [];
  8766. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8767. // itemTaskIndex
  8768. // ].toolChoose[toolIndex].tool.push(i);
  8769. if (
  8770. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  8771. .toolChoose[this.toolIndex].tool != 47
  8772. ) {
  8773. this.addTools(47, this.taskCount, this.toolIndex);
  8774. }
  8775. },
  8776. addTableJson() {
  8777. if (this.tableJson.text == "" || this.tableJson.text == "<p></p>") {
  8778. this.$message.error("请填写信息!");
  8779. return;
  8780. }
  8781. let params = [
  8782. {
  8783. uid: this.userid,
  8784. cid: this.courseId,
  8785. stage: this.unitIndex,
  8786. task: this.taskCount,
  8787. tool: this.toolIndex,
  8788. content: JSON.stringify(this.tableJson.text),
  8789. type: 10,
  8790. atool: 48,
  8791. },
  8792. ];
  8793. this.ajax
  8794. .post(this.$store.state.api + "addStudioCourseWorksS", params)
  8795. .then((res) => {
  8796. this.$message({
  8797. message: "提交成功",
  8798. type: "success",
  8799. });
  8800. this.seleteCourseUpdate();
  8801. this.setPeople(this.unitIndex, this.taskCount, this.userid);
  8802. this.dialogVisibleTable = false;
  8803. })
  8804. .catch((err) => {
  8805. this.$message.error("提交失败");
  8806. console.error(err);
  8807. });
  8808. },
  8809. addStudentAsk() {
  8810. if (!this.radio.length) {
  8811. this.$message.error("请选择选项");
  8812. return;
  8813. }
  8814. for (var i = 0; i < this.askJson.askCount; i++) {
  8815. if (this.radio[i] !== 0 && !this.radio[i]) {
  8816. this.$message.error("请选择选项");
  8817. return;
  8818. }
  8819. }
  8820. let params = [
  8821. {
  8822. uid: this.userid,
  8823. cid: this.courseId,
  8824. stage: this.unitIndex,
  8825. task: this.taskCount,
  8826. tool: this.toolIndex,
  8827. content: JSON.stringify(this.radio),
  8828. type: 14,
  8829. atool: 56,
  8830. },
  8831. ];
  8832. this.ajax
  8833. .post(this.$store.state.api + "addStudioCourseWorksS", params)
  8834. .then((res) => {
  8835. this.$message({
  8836. message: "提交成功",
  8837. type: "success",
  8838. });
  8839. this.radio = [];
  8840. this.seleteCourseUpdate();
  8841. this.dialogVisibleVote2 = false;
  8842. })
  8843. .catch((err) => {
  8844. this.$message.error("提交失败");
  8845. console.error(err);
  8846. });
  8847. },
  8848. addTextJson() {
  8849. if (this.tableJson.text == "" || this.tableJson.text == "<p></p>") {
  8850. this.$message.error("请填写信息!");
  8851. return;
  8852. }
  8853. let params = [
  8854. {
  8855. uid: this.userid,
  8856. cid: this.courseId,
  8857. stage: this.unitIndex,
  8858. task: this.taskCount,
  8859. tool: this.toolIndex,
  8860. content: JSON.stringify(this.tableJson.text),
  8861. type: 12,
  8862. atool: 52,
  8863. },
  8864. ];
  8865. this.ajax
  8866. .post(this.$store.state.api + "addStudioCourseWorksS", params)
  8867. .then((res) => {
  8868. this.$message({
  8869. message: "提交成功",
  8870. type: "success",
  8871. });
  8872. this.tableJson.text = "";
  8873. this.seleteCourseUpdate();
  8874. this.setPeople(this.unitIndex, this.taskCount, this.userid);
  8875. this.dialogVisibleText3 = false;
  8876. })
  8877. .catch((err) => {
  8878. this.$message.error("提交失败");
  8879. console.error(err);
  8880. });
  8881. },
  8882. setPeople(i, task, uid) {
  8883. if (this.checkboxList3.indexOf(uid) == -1 && uid != this.courseUserid) {
  8884. this.checkboxList3.push(uid);
  8885. this.setMan();
  8886. }
  8887. // debugger
  8888. if (
  8889. this.unitJson[i].chapterInfo[0].taskJson[task].people != uid &&
  8890. (!this.unitJson[i].chapterInfo[0].taskJson[task].tcMember ||
  8891. this.unitJson[i].chapterInfo[0].taskJson[task].tcMember.indexOf(
  8892. uid
  8893. ) == -1)
  8894. ) {
  8895. this.unitJson[i].chapterInfo[0].taskJson[task].tcMember
  8896. ? this.unitJson[i].chapterInfo[0].taskJson[task].tcMember.push(uid)
  8897. : (this.unitJson[i].chapterInfo[0].taskJson[task].tcMember = [uid]);
  8898. }
  8899. this.$forceUpdate();
  8900. },
  8901. goToTask(i) {
  8902. document.getElementsByClassName("rightBox")[0].scrollTop =
  8903. document.getElementsByClassName("taskBorder")[i].offsetTop - 100;
  8904. this.isClickColor = i + 1;
  8905. },
  8906. taskMove(type, index) {
  8907. if (type == 1) {
  8908. if (index > 0) {
  8909. let a = JSON.parse(
  8910. JSON.stringify(
  8911. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index - 1]
  8912. )
  8913. );
  8914. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index - 1] =
  8915. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index];
  8916. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index] = a;
  8917. }
  8918. } else {
  8919. if (
  8920. index <
  8921. this.unitJson[this.unitIndex].chapterInfo[0].taskJson.length - 1
  8922. ) {
  8923. let a = JSON.parse(
  8924. JSON.stringify(
  8925. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index + 1]
  8926. )
  8927. );
  8928. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index + 1] =
  8929. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index];
  8930. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index] = a;
  8931. }
  8932. }
  8933. this.$forceUpdate();
  8934. },
  8935. addGroup(i) {
  8936. // this.groupJson.group.splice(i + 1, 0, { name: "第"+(i+1)+"组" });
  8937. this.groupJson.group.push({
  8938. name: "第" + (this.groupJson.group.length + 1) + "组",
  8939. });
  8940. },
  8941. deleteGroup(i) {
  8942. this.groupJson.group.splice(i, 1);
  8943. },
  8944. addGroupJson() {
  8945. for (var i = 0; i < this.groupJson.group.length; i++) {
  8946. if (!this.groupJson.group[i].name) {
  8947. this.$message.error("请将信息填写完整!");
  8948. return;
  8949. }
  8950. }
  8951. if (!this.groupJson.number) {
  8952. this.$message.error("请将信息填写完整!");
  8953. return;
  8954. }
  8955. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8956. this.taskCount
  8957. ].toolChoose[this.toolIndex].groupJson = JSON.parse(
  8958. JSON.stringify(this.groupJson)
  8959. );
  8960. this.dialogVisibleGroup = false;
  8961. this.groupJson = {};
  8962. if (
  8963. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  8964. .toolChoose[this.toolIndex].tool != 49
  8965. ) {
  8966. this.addTools(49, this.taskCount, this.toolIndex);
  8967. }
  8968. },
  8969. deleteWorks(id) {
  8970. this.$confirm("确定删除此作业吗?", "提示", {
  8971. confirmButtonText: "确定",
  8972. cancelButtonText: "取消",
  8973. type: "warning",
  8974. })
  8975. .then(() => {
  8976. let params = [
  8977. {
  8978. id: id,
  8979. },
  8980. ];
  8981. this.ajax
  8982. .post(this.$store.state.api + "deleteStudentCourseWorkS", params)
  8983. .then((res) => {
  8984. this.$message({
  8985. message: "删除成功",
  8986. type: "success",
  8987. });
  8988. this.seleteCourseUpdate();
  8989. })
  8990. .catch((err) => {
  8991. this.$message.error("网络异常");
  8992. console.error(err);
  8993. });
  8994. })
  8995. .catch(() => {});
  8996. },
  8997. openLineS(url) {
  8998. window.open(url);
  8999. },
  9000. checkFileFull(type, url) {
  9001. this.fullDialogVisible = true;
  9002. this.fulltype = type;
  9003. this.fullUrl = url;
  9004. },
  9005. downloadFile(url) {
  9006. let _this = this;
  9007. let _url = "";
  9008. if (
  9009. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  9010. ) {
  9011. _url = url.split(
  9012. "https://view.officeapps.live.com/op/view.aspx?src="
  9013. )[1];
  9014. } else {
  9015. _url = url;
  9016. }
  9017. const x = new XMLHttpRequest();
  9018. x.open("GET", _url, true);
  9019. x.responseType = "blob";
  9020. const loading = _this.$loading.service({
  9021. background: "rgba(255, 255, 255, 0.7)",
  9022. target: document.body,
  9023. text:'文件加载中...'
  9024. });
  9025. // _this.$message.success("文件下载中...");
  9026. x.onload = function (e) {
  9027. loading.close();
  9028. // const url = window.URL.createObjectURL(x.response);
  9029. // const a = document.createElement("a");
  9030. // a.href = url;
  9031. // a.target = "_blank";
  9032. // a.download = url;
  9033. // a.click();
  9034. // a.remove();
  9035. let content = x.response;
  9036. let elink = document.createElement("a");
  9037. elink.download = decodeURI(
  9038. _url.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
  9039. );
  9040. elink.style.display = "none";
  9041. let blob = new Blob([content]);
  9042. elink.href = URL.createObjectURL(blob);
  9043. document.body.appendChild(elink);
  9044. elink.click();
  9045. document.body.removeChild(elink);
  9046. };
  9047. x.send();
  9048. },
  9049. editSourceUpadte(taskCount, index) {
  9050. this.taskCount = taskCount;
  9051. this.toolIndex = index;
  9052. this.editSourceType = 2;
  9053. this.sourcesData = JSON.parse(
  9054. JSON.stringify(
  9055. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[taskCount]
  9056. .toolArray[index].toolData
  9057. )
  9058. );
  9059. this.proVisible = false;
  9060. this.progress = 0;
  9061. this.inputShow = true;
  9062. this.dialogVisibleSource = true;
  9063. },
  9064. addQuestion() {
  9065. let params = [
  9066. {
  9067. uid: this.userid,
  9068. cid: this.courseId,
  9069. stage: this.unitIndex,
  9070. task: this.taskCount,
  9071. tool: this.toolIndex,
  9072. content: this.questionAnswer,
  9073. type: 3,
  9074. atool: 15,
  9075. },
  9076. ];
  9077. this.ajax
  9078. .post(this.$store.state.api + "addStudioCourseWorksS", params)
  9079. .then((res) => {
  9080. this.$message({
  9081. message: "提交成功",
  9082. type: "success",
  9083. });
  9084. this.questionAnswer = "";
  9085. this.answerDialogVisible = false;
  9086. this.seleteCourseUpdate();
  9087. })
  9088. .catch((err) => {
  9089. this.$message.error("提交失败");
  9090. console.error(err);
  9091. });
  9092. },
  9093. addCourseWorksS(tool, type, content, task, toolindex) {
  9094. let params = [
  9095. {
  9096. uid: this.userid,
  9097. cid: this.courseId,
  9098. stage: this.unitIndex,
  9099. task: task,
  9100. tool: toolindex,
  9101. content: content,
  9102. type: type,
  9103. atool: tool,
  9104. },
  9105. ];
  9106. this.ajax
  9107. .post(this.$store.state.api + "addStudioCourseWorksS", params)
  9108. .then((res) => {
  9109. this.$message({
  9110. message: "提交成功",
  9111. type: "success",
  9112. });
  9113. this.setPeople(this.unitIndex, task, this.userid);
  9114. this.seleteCourseUpdate();
  9115. })
  9116. .catch((err) => {
  9117. this.$message.error("提交失败");
  9118. console.error(err);
  9119. });
  9120. },
  9121. openFile(f) {
  9122. this.pptImgUrl = "";
  9123. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  9124. if (
  9125. a.indexOf(f.split(".")[f.split(".").length - 1].toLocaleUpperCase()) !=
  9126. -1
  9127. ) {
  9128. this.pptImgUrl =
  9129. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(f);
  9130. this.showPDF = false;
  9131. this.dialogVisibleFile = true;
  9132. } else if (
  9133. f.split(".")[f.split(".").length - 1].toLocaleUpperCase() == "PDF"
  9134. ) {
  9135. this.pptImgUrl = f;
  9136. this.showPDF = true;
  9137. this.dialogVisibleFile = true;
  9138. }
  9139. },
  9140. openText(f) {
  9141. this.tableJson.text = JSON.parse(f);
  9142. this.dialogVisibleText2 = true;
  9143. },
  9144. openAsk(f, taskCount, i) {
  9145. this.askJson = JSON.parse(
  9146. JSON.stringify(
  9147. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[taskCount]
  9148. .toolArray[i].askJson
  9149. )
  9150. );
  9151. this.radio = JSON.parse(f);
  9152. this.dialogVisibleVote3 = true;
  9153. },
  9154. openMember() {
  9155. this.searchTN = "";
  9156. this.page = 1
  9157. this.getTeacher();
  9158. this.dialogVisibleMember = true;
  9159. },
  9160. updateType(sid) {
  9161. var a = this.courseTypeId;
  9162. var a1 = JSON.parse(JSON.stringify(this.courseTypeId));
  9163. var c = [];
  9164. var b = sid.pid;
  9165. var d = [];
  9166. // for (var i = 0; i < this.CourseType[1].length; i++) {
  9167. // if (this.CourseType[1][i].id == sid) {
  9168. // b = this.CourseType[1][i].pid;
  9169. // }
  9170. // }
  9171. for (var j = 0; j < this.CourseTypeJson[b].length; j++) {
  9172. d.push(this.CourseTypeJson[b][j].id);
  9173. }
  9174. for (var i = 0; i < a.length; i++) {
  9175. if (d.indexOf(a[i]) == -1) {
  9176. c.push(a[i]);
  9177. }
  9178. }
  9179. c.push(sid.id);
  9180. this.courseTypeId = c;
  9181. },
  9182. openVideo(w) {
  9183. this.videoDetail = JSON.parse(JSON.stringify(this.playerOptions));
  9184. this.videoDetail.sources[0].src = w;
  9185. this.videoVisible = true;
  9186. },
  9187. getGMan(people) {
  9188. let _people = "";
  9189. if (this.ManAarray.length) {
  9190. for (var i = 0; i < this.ManAarray.length; i++) {
  9191. if (this.ManAarray[i].userid == people) {
  9192. _people = this.ManAarray[i].name;
  9193. break;
  9194. }
  9195. }
  9196. }
  9197. return _people ? _people : "无";
  9198. },
  9199. },
  9200. beforeDestroy() {
  9201. clearTimeout(this.timer);
  9202. this.timer = null;
  9203. },
  9204. beforeRouteLeave(to, from, next) {
  9205. clearTimeout(this.timer);
  9206. this.timer = null;
  9207. next();
  9208. },
  9209. beforeRouteEnter(to, from, next) {
  9210. next((vm) => {
  9211. vm.fpath = from.path;
  9212. });
  9213. },
  9214. created() {
  9215. this.getStudent();
  9216. this.getTeacher();
  9217. this.getClass();
  9218. this.getTemplate();
  9219. // this.selectEva();
  9220. this.loading = false;
  9221. setTimeout(() => {
  9222. this.selectCourseDetail();
  9223. // this.selectEva();
  9224. }, 500);
  9225. },
  9226. };
  9227. </script>
  9228. <style scoped>
  9229. @media screen and (max-width: 1280px) {
  9230. .mbCss {
  9231. flex-direction: column !important;
  9232. }
  9233. .pjCss {
  9234. width: 100% !important;
  9235. }
  9236. .evaCss {
  9237. width: 100% !important;
  9238. }
  9239. }
  9240. .dialog_diy >>> .el-dialog__header {
  9241. background: #3c3c3c !important;
  9242. padding: 15px 20px;
  9243. }
  9244. .dialog_diy >>> .el-dialog__title {
  9245. color: #fff;
  9246. }
  9247. .dialog_diy >>> .el-dialog__headerbtn {
  9248. top: 19px;
  9249. }
  9250. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close {
  9251. color: #fff;
  9252. }
  9253. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close:hover {
  9254. color: #fff;
  9255. }
  9256. .dialog_diy >>> .el-dialog__body,
  9257. .dialog_diy >>> .el-dialog__footer {
  9258. background: #fafafa;
  9259. }
  9260. .dialog_diy3 >>> .el-dialog__body,
  9261. .dialog_diy3 >>> .el-dialog__footer {
  9262. background: #eee !important;
  9263. }
  9264. .dialog_diy3 >>> .el-dialog__body {
  9265. padding: 20px 20px;
  9266. }
  9267. .left {
  9268. border-right: 1px solid rgb(60, 94, 143);
  9269. display: flex;
  9270. flex-direction: column;
  9271. align-items: center;
  9272. min-height: 600px;
  9273. width: 385px;
  9274. height: 80%;
  9275. }
  9276. .tips {
  9277. color: rgb(128, 128, 128);
  9278. font-size: 12px;
  9279. width: 270px;
  9280. margin: 40px;
  9281. }
  9282. .pb_content {
  9283. height: 100% !important;
  9284. /* margin: 0 20px 0 20px; */
  9285. }
  9286. .pb_content_body {
  9287. width: 100% !important;
  9288. height: 100%;
  9289. }
  9290. .info_solid {
  9291. width: 270px;
  9292. height: 30px;
  9293. border-left: 1px solid #bdbdbd;
  9294. margin: 10px 0px 10px 30px;
  9295. }
  9296. .info_steps {
  9297. width: 270px;
  9298. font-size: 0.875rem;
  9299. display: flex;
  9300. align-items: center;
  9301. }
  9302. .info_steps span:nth-child(1) {
  9303. width: 30px;
  9304. height: 30px;
  9305. background: rgba(0, 0, 0, 0.38);
  9306. display: block;
  9307. color: #fff;
  9308. border-radius: 40px;
  9309. text-align: center;
  9310. line-height: 30px;
  9311. }
  9312. .steps_active {
  9313. background: #3d67bc !important;
  9314. }
  9315. .info_steps span:nth-child(2) {
  9316. margin-left: 5px;
  9317. }
  9318. .right {
  9319. height: 100%;
  9320. width: 100%;
  9321. display: flex;
  9322. overflow: hidden;
  9323. }
  9324. .basic_box {
  9325. margin: 0 auto;
  9326. position: relative;
  9327. padding: 0 20px 0 20px;
  9328. }
  9329. .basic_box_success {
  9330. width: 100%;
  9331. min-height: 455px;
  9332. padding: 50px 0;
  9333. position: relative;
  9334. text-align: center;
  9335. border-bottom: 1px solid #bfbfbf;
  9336. box-sizing: border-box;
  9337. display: flex;
  9338. align-items: center;
  9339. flex-direction: column;
  9340. justify-content: center;
  9341. }
  9342. .info_title {
  9343. font-size: 1.5em;
  9344. margin-right: 25px;
  9345. /* margin: 20px 30px 20px 30px; */
  9346. }
  9347. .bInfo_title {
  9348. text-align: left;
  9349. margin: 10px 0;
  9350. }
  9351. .small_title {
  9352. font-size: 14px;
  9353. line-height: 40px;
  9354. }
  9355. .chapter_beizhu {
  9356. font-size: 12px;
  9357. font-weight: bold;
  9358. float: right;
  9359. color: rgb(128, 128, 128);
  9360. margin-top: 5px;
  9361. }
  9362. .chapter_uploadBox1 {
  9363. text-align: left;
  9364. background-color: rgb(242, 242, 242);
  9365. width: 100%;
  9366. height: 67px;
  9367. padding: 0px 15px;
  9368. border-radius: 8px;
  9369. overflow: hidden;
  9370. font-size: 16px;
  9371. box-sizing: border-box;
  9372. position: relative;
  9373. }
  9374. .chapter_add {
  9375. width: 100%;
  9376. height: 32px;
  9377. margin-top: 15px;
  9378. cursor: pointer;
  9379. }
  9380. .chapter_add_l {
  9381. margin-left: 5px;
  9382. width: 30px;
  9383. height: 30px;
  9384. float: left;
  9385. border: 1px solid #aaa;
  9386. color: #aaa;
  9387. border-radius: 50%;
  9388. font-size: 25px;
  9389. text-align: center;
  9390. }
  9391. .chapter_add_r {
  9392. font-size: 18px;
  9393. height: 40px;
  9394. line-height: 30px;
  9395. text-indent: 10px;
  9396. color: #aaa;
  9397. }
  9398. .chapter_add_r span {
  9399. font-size: 12px;
  9400. color: rgb(204, 204, 204);
  9401. }
  9402. .chapter_add_input {
  9403. display: none;
  9404. }
  9405. .line {
  9406. width: 85%;
  9407. margin: 0 auto;
  9408. border-top: 1px solid #e5e5e5;
  9409. margin-top: 20px;
  9410. }
  9411. .info_btnBox {
  9412. width: 100%;
  9413. display: flex;
  9414. justify-content: space-evenly;
  9415. margin: 10px 0 10px 0;
  9416. }
  9417. .info_btn,
  9418. .teacherWord {
  9419. color: #fff;
  9420. background-color: #0f7eff;
  9421. padding: 8px 24px;
  9422. font-size: 0.9375rem;
  9423. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 2px 2px 0px rgb(0 0 0 / 14%),
  9424. 0px 3px 1px -2px rgb(0 0 0 / 12%);
  9425. min-width: 64px;
  9426. font-weight: 500;
  9427. border-radius: 4px;
  9428. box-sizing: border-box;
  9429. border: none;
  9430. cursor: pointer;
  9431. }
  9432. .teacherWord {
  9433. width: 105px !important;
  9434. text-align: center !important;
  9435. line-height: 36px !important;
  9436. padding: 0 !important;
  9437. font-size: 14px !important;
  9438. margin: 10px 0 !important;
  9439. }
  9440. .wordTeacher {
  9441. display: flex;
  9442. flex-direction: column;
  9443. width: 145px;
  9444. text-align: center;
  9445. font-size: 14px;
  9446. margin: 30px 0 0 10px;
  9447. background: #fff;
  9448. position: relative;
  9449. border-radius: 5px;
  9450. padding: 25px 0px;
  9451. }
  9452. .wordPic {
  9453. margin: 0 auto;
  9454. width: 60px;
  9455. height: 60px;
  9456. cursor: pointer;
  9457. }
  9458. .deleteWord {
  9459. width: 22px;
  9460. height: 22px;
  9461. position: absolute;
  9462. right: 5px;
  9463. top: -15px;
  9464. cursor: pointer;
  9465. display: none;
  9466. z-index: 999;
  9467. }
  9468. .wordPic > img,
  9469. .deleteWord > img,
  9470. .addToolImg > img {
  9471. width: 100%;
  9472. height: 100%;
  9473. }
  9474. .info_btn:hover {
  9475. background-color: #4f7cd5 !important;
  9476. }
  9477. .cru_selectBox {
  9478. display: flex;
  9479. margin: 24px 0 10px;
  9480. flex-wrap: nowrap;
  9481. white-space: nowrap;
  9482. overflow: auto;
  9483. position: relative;
  9484. height: 47px;
  9485. }
  9486. .cru_selectBox::-webkit-scrollbar {
  9487. /*滚动条整体样式*/
  9488. width: 6px;
  9489. /*高宽分别对应横竖滚动条的尺寸*/
  9490. height: 6px;
  9491. }
  9492. /*定义滚动条轨道 内阴影+圆角*/
  9493. .cru_selectBox::-webkit-scrollbar-track {
  9494. border-radius: 10px;
  9495. background-color: #eee;
  9496. }
  9497. /*定义滑块 内阴影+圆角*/
  9498. .cru_selectBox::-webkit-scrollbar-thumb {
  9499. border-radius: 10px;
  9500. -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  9501. background-color: rgba(0, 0, 0, 0.1);
  9502. }
  9503. .cru_line {
  9504. position: absolute;
  9505. bottom: 0px;
  9506. transition: all 0.5s;
  9507. left: 0px;
  9508. width: 125px;
  9509. margin-left: -25px;
  9510. }
  9511. .cru_select {
  9512. font-size: 21px;
  9513. margin-right: 37px;
  9514. margin-left: 5px;
  9515. cursor: pointer;
  9516. color: #a6a6a6;
  9517. }
  9518. .cru_selected {
  9519. color: #0b7fc2 !important;
  9520. }
  9521. .chapter_contentbox {
  9522. display: flex;
  9523. align-items: center;
  9524. margin-top: 15px;
  9525. }
  9526. .chapter_contentbox > div:nth-child(1) {
  9527. /* width: 150px; */
  9528. margin: 0px;
  9529. /* font-size: 2em; */
  9530. color: black;
  9531. display: block;
  9532. white-space: nowrap;
  9533. overflow: hidden;
  9534. text-overflow: ellipsis;
  9535. /* font-weight: 600; */
  9536. margin-right: 20px;
  9537. font-size: 18px;
  9538. }
  9539. .chapter_contentbox > div:nth-child(2) {
  9540. width: 380px;
  9541. }
  9542. .chapter_contentbox > div:nth-child(3),
  9543. .remove {
  9544. background-image: url("../../../assets/remove.png");
  9545. cursor: pointer;
  9546. opacity: 0.5;
  9547. width: 40px !important;
  9548. height: 50px;
  9549. background-repeat: no-repeat;
  9550. background-position: 5px 10px;
  9551. }
  9552. .remove1 {
  9553. background-image: url("../../../assets/remove1.png");
  9554. background-repeat: no-repeat;
  9555. background-position: 5px 10px;
  9556. width: 40px;
  9557. height: 50px;
  9558. cursor: pointer;
  9559. }
  9560. .binfo_input {
  9561. font: inherit;
  9562. color: currentColor;
  9563. width: 100%;
  9564. margin: 0;
  9565. /* padding: 15px 14px; */
  9566. padding: 8px 14px;
  9567. display: block;
  9568. min-width: 0;
  9569. outline: none;
  9570. box-sizing: content-box;
  9571. background: none;
  9572. border: 1px solid rgba(0, 0, 0, 0.23);
  9573. border-radius: 4px;
  9574. box-sizing: border-box;
  9575. background: #fff;
  9576. font-size: 18px;
  9577. }
  9578. .binfo_input:focus-visible {
  9579. border: 1px solid rgba(61, 103, 188);
  9580. }
  9581. .time {
  9582. display: flex;
  9583. margin: 35px 0 80px 0;
  9584. }
  9585. .chapter_btnbox {
  9586. width: 160px;
  9587. border-radius: 5px;
  9588. border: 2px dashed gray;
  9589. display: flex;
  9590. padding: 8px 50px;
  9591. align-items: center;
  9592. justify-content: center;
  9593. margin: 30px auto 0;
  9594. cursor: pointer;
  9595. }
  9596. .icon_add {
  9597. position: relative;
  9598. width: 24px;
  9599. padding-top: 20px;
  9600. border-radius: 100%;
  9601. border-width: 2px;
  9602. border-style: solid;
  9603. border-color: gray;
  9604. }
  9605. .icon_add i:nth-child(1) {
  9606. position: absolute;
  9607. left: 50%;
  9608. top: 50%;
  9609. height: 60%;
  9610. transform: translate(-50%, -50%);
  9611. border-width: 1px;
  9612. border-style: solid;
  9613. border-color: inherit;
  9614. }
  9615. .icon_add i:nth-child(2) {
  9616. position: absolute;
  9617. top: 50%;
  9618. left: 50%;
  9619. width: 60%;
  9620. transform: translate(-50%, -50%);
  9621. border-width: 1px;
  9622. border-style: solid;
  9623. border-color: inherit;
  9624. }
  9625. .chapter_btn_w {
  9626. font-size: 0.9375rem;
  9627. font-weight: bold;
  9628. color: gray;
  9629. margin-left: 20px;
  9630. }
  9631. .disUoloadSty >>> .el-icon-plus {
  9632. display: none !important;
  9633. /* 上传按钮隐藏 */
  9634. }
  9635. .imgLeft {
  9636. margin: 15px 0;
  9637. }
  9638. .add_info_box {
  9639. margin: 20px 0;
  9640. }
  9641. .add_info_box button {
  9642. margin: 0 10px 10px 0;
  9643. }
  9644. .add_chapters_box {
  9645. text-align: left;
  9646. background-color: rgb(232 234 237);
  9647. width: 100%;
  9648. padding: 0px 15px;
  9649. border-radius: 15px;
  9650. font-size: 16px;
  9651. box-sizing: border-box;
  9652. position: relative;
  9653. padding: 0 10px 5px 10px;
  9654. height: 185px;
  9655. overflow-y: auto;
  9656. overflow-x: hidden;
  9657. }
  9658. .homework_box {
  9659. display: flex;
  9660. align-items: flex-start;
  9661. flex-wrap: wrap;
  9662. margin: 15px 0 0 0;
  9663. flex-direction: column;
  9664. align-content: flex-start;
  9665. }
  9666. .course_homework {
  9667. display: flex;
  9668. justify-content: center;
  9669. flex-direction: row;
  9670. align-items: center;
  9671. margin: 0 10px 0 0;
  9672. }
  9673. .course_homework >>> .el-input__inner {
  9674. width: 140px;
  9675. margin-left: 15px;
  9676. }
  9677. .chapter_upload_move {
  9678. position: relative;
  9679. background-color: #fff;
  9680. position: absolute;
  9681. width: 100%;
  9682. top: 0px;
  9683. left: 0px;
  9684. border: 1px solid #eee;
  9685. border-radius: 5px;
  9686. transition: width 2s;
  9687. -moz-transition: width 2s;
  9688. -webkit-transition: width 2s;
  9689. -o-transition: width 2s;
  9690. }
  9691. .chapter_upload_l_i {
  9692. background-image: url("../../../assets/icon.png");
  9693. background-position: 3px -165px;
  9694. width: 30px;
  9695. height: 30px;
  9696. margin: 10px auto 0 auto;
  9697. }
  9698. .left_first {
  9699. display: flex;
  9700. flex-direction: column;
  9701. flex-wrap: nowrap;
  9702. }
  9703. .right_first {
  9704. width: 100%;
  9705. height: 100%;
  9706. margin-top: 15px;
  9707. }
  9708. .right_title {
  9709. height: 30px;
  9710. padding: 15px 0 15px 20px;
  9711. border-bottom: 1px solid #f2f2f2;
  9712. font-size: 1.5em;
  9713. font-weight: bold;
  9714. color: #0f7eff;
  9715. margin: 0 auto;
  9716. }
  9717. .addNewPP>>>.el-dialog{
  9718. margin-top:5vh !important;
  9719. }
  9720. .people {
  9721. border: 1px solid rgb(229 229 229);
  9722. height: 350px;
  9723. border-radius: 5px;
  9724. width: 100%;
  9725. overflow: auto;
  9726. }
  9727. .people_top {
  9728. display: flex;
  9729. width: 100%;
  9730. /* justify-content: space-between; */
  9731. /* align-items: center; */
  9732. flex-direction: column;
  9733. padding: 10px 25px 0;
  9734. box-sizing: border-box;
  9735. }
  9736. .people_nav,
  9737. .people_top_right {
  9738. /* padding: 20px 0 0 20px; */
  9739. }
  9740. .people_top_right {
  9741. height: 40px;
  9742. margin-bottom: 10px;
  9743. }
  9744. .people_search {
  9745. display: flex;
  9746. position: relative;
  9747. }
  9748. .people_search >>> .el-input__inner {
  9749. /* height: 25px; */
  9750. width: 95%;
  9751. }
  9752. .search_img {
  9753. width: 20px;
  9754. height: 20px;
  9755. position: absolute;
  9756. right: 30px;
  9757. top: 50%;
  9758. transform: translateY(-50%);
  9759. }
  9760. .search_img > img {
  9761. width: 100%;
  9762. height: 100%;
  9763. }
  9764. .people_name {
  9765. display: flex;
  9766. justify-content: flex-start;
  9767. padding: 10px 0 0 25px;
  9768. flex-direction: column;
  9769. flex-wrap: nowrap;
  9770. height: calc(100% - 140px);
  9771. overflow-y: auto;
  9772. overflow-x: hidden;
  9773. flex-direction: column;
  9774. }
  9775. .people_name >>> .el-checkbox {
  9776. width: 100%;
  9777. display: flex;
  9778. align-items: center;
  9779. margin-bottom: 10px;
  9780. }
  9781. .people_name >>> .el-checkbox__label {
  9782. text-overflow: ellipsis;
  9783. overflow: hidden;
  9784. width: 100%;
  9785. }
  9786. .right_img {
  9787. width: 150px;
  9788. height: 150px;
  9789. margin: 0 auto;
  9790. }
  9791. .right_img > img {
  9792. width: 100%;
  9793. height: 100%;
  9794. }
  9795. .number {
  9796. margin-top: 20px;
  9797. color: #4aa6ff;
  9798. text-decoration: underline;
  9799. }
  9800. .success_button {
  9801. display: flex;
  9802. text-align: center;
  9803. margin: 5% 0 auto;
  9804. flex-direction: row;
  9805. justify-content: center;
  9806. }
  9807. .look_course {
  9808. margin-right: 40px;
  9809. background: #3d67bc;
  9810. width: 200px;
  9811. height: 35px;
  9812. line-height: 35px;
  9813. color: #fff;
  9814. text-align: center;
  9815. font-size: 14px;
  9816. border-radius: 5px;
  9817. cursor: pointer;
  9818. }
  9819. .attend_others {
  9820. width: 250px;
  9821. background: #4fb13c;
  9822. height: 35px;
  9823. line-height: 35px;
  9824. color: #fff;
  9825. text-align: center;
  9826. font-size: 14px;
  9827. border-radius: 5px;
  9828. cursor: pointer;
  9829. }
  9830. .dialog_diy2 >>> .el-dialog__body {
  9831. text-align: center;
  9832. }
  9833. .write_togother {
  9834. position: absolute;
  9835. right: 45px;
  9836. display: flex;
  9837. top: 5%;
  9838. }
  9839. .write_people {
  9840. font-size: 14px;
  9841. line-height: 50px;
  9842. padding-right: 10px;
  9843. }
  9844. .end_write {
  9845. background: #3d67bc;
  9846. color: #fff;
  9847. width: 100px;
  9848. height: 35px;
  9849. line-height: 35px;
  9850. text-align: center;
  9851. font-size: 14px;
  9852. border-radius: 5px;
  9853. cursor: pointer;
  9854. }
  9855. .chapter_upload {
  9856. height: 50px;
  9857. margin-top: 12px;
  9858. position: relative;
  9859. display: flex;
  9860. align-items: center;
  9861. width: 100%;
  9862. min-height: 50px;
  9863. }
  9864. .chapter_upload_t {
  9865. background-color: #fff;
  9866. position: absolute;
  9867. height: 100%;
  9868. top: 0px;
  9869. left: 0px;
  9870. border-radius: 40px;
  9871. box-sizing: border-box;
  9872. box-shadow: 0 0 3px 3px #dfdfdf;
  9873. }
  9874. .chapter_upload_o {
  9875. width: 100%;
  9876. height: 100%;
  9877. position: relative;
  9878. z-index: 1;
  9879. }
  9880. .chapter_upload_ic {
  9881. height: 30px;
  9882. float: right;
  9883. }
  9884. .chapter_upload_ic_l {
  9885. width: 50px;
  9886. height: 50px;
  9887. float: left;
  9888. }
  9889. .chapter_upload_ic_l div {
  9890. width: 30px;
  9891. height: 35px;
  9892. background: url("../../../assets/icon/icon.png");
  9893. }
  9894. .chapter_upload_ic_r {
  9895. width: 50px;
  9896. height: 50px;
  9897. float: left;
  9898. margin-left: 0px;
  9899. display: flex;
  9900. align-items: center;
  9901. }
  9902. .chapter_upload_ic_r div {
  9903. width: 25px;
  9904. height: 25px;
  9905. background-image: url("../../../assets/delete.png");
  9906. background-size: 100% 100%;
  9907. }
  9908. .chapter_upload_n {
  9909. display: flex;
  9910. text-indent: 10px;
  9911. text-decoration: none;
  9912. text-overflow: ellipsis;
  9913. white-space: nowrap;
  9914. overflow: hidden;
  9915. width: 55%;
  9916. margin-left: 10px;
  9917. cursor: pointer;
  9918. margin-top: 2px;
  9919. }
  9920. .chapter_upload_l_i1 {
  9921. background-image: url("../../../assets/icon/video.png");
  9922. width: 28px;
  9923. height: 28px;
  9924. background-size: 100% 100%;
  9925. }
  9926. .chapter_upload_l_i5 {
  9927. background-image: url("../../../assets/icon/word.png");
  9928. width: 24px;
  9929. height: 24px;
  9930. background-size: 100% 100%;
  9931. }
  9932. .chapter_upload_l_i8 {
  9933. background-image: url("../../../assets/icon/line.png");
  9934. width: 24px;
  9935. height: 24px;
  9936. background-size: 100% 100%;
  9937. }
  9938. .chapter_upload_ud {
  9939. display: flex;
  9940. flex-direction: column;
  9941. margin-left: 5px;
  9942. justify-content: center;
  9943. }
  9944. .chapter_upload_up {
  9945. background-image: url("../../../assets/icon/up.png");
  9946. width: 17px;
  9947. height: 15px;
  9948. background-size: 100% 100%;
  9949. cursor: pointer;
  9950. }
  9951. .chapter_upload_down {
  9952. background-image: url("../../../assets/icon/down.png");
  9953. width: 17px;
  9954. height: 15px;
  9955. margin: 2px auto 0 auto;
  9956. background-size: 100% 100%;
  9957. cursor: pointer;
  9958. }
  9959. .addWordStyle {
  9960. display: flex;
  9961. flex-direction: row;
  9962. justify-content: flex-start;
  9963. overflow-x: auto;
  9964. white-space: nowrap;
  9965. flex-wrap: wrap;
  9966. }
  9967. /* table 样式 */
  9968. .cont >>> table {
  9969. border-top: 1px solid #ccc;
  9970. border-left: 1px solid #ccc;
  9971. }
  9972. .cont >>> table td,
  9973. .cont >>> table th {
  9974. border-bottom: 1px solid #ccc;
  9975. border-right: 1px solid #ccc;
  9976. /* padding: 20px 5px; */
  9977. padding: 5px 10px;
  9978. max-width: 0px;
  9979. height: 30px;
  9980. vertical-align: baseline;
  9981. }
  9982. .cont >>> table th {
  9983. border-bottom: 2px solid #ccc;
  9984. text-align: center;
  9985. }
  9986. /* blockquote 样式 */
  9987. .cont >>> blockquote {
  9988. display: block;
  9989. border-left: 8px solid #d0e5f2;
  9990. padding: 5px 10px;
  9991. margin: 10px 0;
  9992. line-height: 1.4;
  9993. font-size: 100%;
  9994. background-color: #f1f1f1;
  9995. }
  9996. /* code 样式 */
  9997. .cont >>> code {
  9998. display: inline-block;
  9999. *display: inline;
  10000. *zoom: 1;
  10001. background-color: #f1f1f1;
  10002. border-radius: 3px;
  10003. padding: 3px 5px;
  10004. margin: 0 3px;
  10005. }
  10006. .cont >>> pre code {
  10007. display: block;
  10008. }
  10009. /* ul ol 样式 */
  10010. .cont >>> ul,
  10011. ol {
  10012. margin: 10px 0 10px 20px;
  10013. }
  10014. .wordbox {
  10015. display: flex;
  10016. flex-wrap: wrap;
  10017. cursor: pointer;
  10018. width: 100%;
  10019. }
  10020. .checkword {
  10021. width: 22px;
  10022. height: 22px;
  10023. margin: 10px auto 0;
  10024. cursor: pointer;
  10025. }
  10026. .checkword img {
  10027. width: 100%;
  10028. }
  10029. .stepBg {
  10030. display: flex;
  10031. flex-direction: column;
  10032. justify-content: space-between;
  10033. align-items: center;
  10034. background: #fff;
  10035. width: 300px;
  10036. margin: 0 25px 0 0;
  10037. }
  10038. .stepTop {
  10039. min-width: 300px;
  10040. width: 300px;
  10041. /* border-radius: 10px; */
  10042. display: flex;
  10043. flex-direction: column;
  10044. justify-content: flex-start;
  10045. align-items: center;
  10046. flex-wrap: nowrap;
  10047. background: #fff;
  10048. /* top: 18%; */
  10049. }
  10050. .stepTop > div {
  10051. height: 80px;
  10052. width: 85%;
  10053. cursor: pointer;
  10054. margin: 10px 0;
  10055. border-radius: 10px;
  10056. }
  10057. .first,
  10058. .second,
  10059. .third,
  10060. .four {
  10061. background: #4a83d0;
  10062. height: 90px;
  10063. color: #fff;
  10064. display: flex;
  10065. flex-direction: row;
  10066. align-items: center;
  10067. justify-content: center;
  10068. }
  10069. .first > div:nth-child(1),
  10070. .second > div:nth-child(1),
  10071. .third > div:nth-child(1),
  10072. .four > div:nth-child(1) {
  10073. margin: 5px 10px 0 0;
  10074. width: 2rem;
  10075. }
  10076. .firstNo,
  10077. .secondNo,
  10078. .thirdNo,
  10079. .fourNo {
  10080. background: #e7e7e7;
  10081. color: #adadad;
  10082. display: flex;
  10083. flex-direction: row;
  10084. align-items: center;
  10085. justify-content: center;
  10086. }
  10087. .firstNo > div:nth-child(1),
  10088. .secondNo > div:nth-child(1),
  10089. .thirdNo > div:nth-child(1),
  10090. .fourNo > div:nth-child(1) {
  10091. margin: 5px 10px 0 0;
  10092. width: 2rem;
  10093. }
  10094. .uploadWidth >>> .el-upload {
  10095. width: 60px;
  10096. height: 60px;
  10097. position: relative;
  10098. }
  10099. .addPeople {
  10100. background: #fa6060;
  10101. width: 150px;
  10102. height: 40px;
  10103. color: #fff;
  10104. border-radius: 5px;
  10105. text-align: center;
  10106. line-height: 40px;
  10107. font-size: 14px;
  10108. cursor: pointer;
  10109. margin-top: 20px;
  10110. }
  10111. .kcImg {
  10112. width: 60px;
  10113. margin-left: 10px;
  10114. }
  10115. .zyImg {
  10116. width: 55px;
  10117. margin: 0 10px;
  10118. }
  10119. .deleteZy {
  10120. width: 20px;
  10121. position: absolute;
  10122. top: 5px;
  10123. right: 5px;
  10124. cursor: pointer;
  10125. }
  10126. .kcImg > img,
  10127. .zyImg > img,
  10128. .deleteZy > img {
  10129. width: 100%;
  10130. height: 100%;
  10131. }
  10132. .zyBox {
  10133. display: flex;
  10134. flex-direction: row;
  10135. align-items: center;
  10136. background: #67d37d;
  10137. color: #fff;
  10138. width: 210px;
  10139. margin: 20px 20px 0 0;
  10140. border-radius: 10px;
  10141. height: 70px;
  10142. position: relative;
  10143. }
  10144. .upCss {
  10145. display: flex;
  10146. flex-direction: row;
  10147. justify-content: flex-start;
  10148. }
  10149. .upCss >>> .el-icon-plus {
  10150. position: none !important;
  10151. width: 200px;
  10152. height: 100px;
  10153. display: flex;
  10154. flex-wrap: nowrap;
  10155. flex-direction: column;
  10156. align-items: center;
  10157. justify-content: center;
  10158. border: 1px dashed #ccc;
  10159. min-width: 78px;
  10160. min-height: 100px;
  10161. z-index: 999;
  10162. }
  10163. .upCss >>> .el-upload-list__item-name {
  10164. width: 100px;
  10165. white-space: nowrap;
  10166. overflow: hidden;
  10167. text-overflow: ellipsis;
  10168. }
  10169. .upCss>>>.el-upload-list__item .el-icon-close {
  10170. font-size: 20px;
  10171. z-index: 9999;
  10172. }
  10173. .addStageImg {
  10174. min-width: 25px;
  10175. min-height: 25px;
  10176. width: 25px;
  10177. height: 25px;
  10178. cursor: pointer;
  10179. }
  10180. .addHW {
  10181. width: 28px;
  10182. height: 28px;
  10183. cursor: pointer;
  10184. }
  10185. .addStageImg > img,
  10186. .addHW > img {
  10187. width: 100%;
  10188. height: 100%;
  10189. }
  10190. .addNewPP >>> .el-dialog__body {
  10191. padding: 5px 20px;
  10192. }
  10193. .isHeight {
  10194. height: 680px;
  10195. }
  10196. .toolChoose {
  10197. display: flex;
  10198. /* width: 100%; */
  10199. flex-direction: row;
  10200. flex-wrap: wrap;
  10201. }
  10202. .tool {
  10203. display: flex;
  10204. flex-direction: column;
  10205. flex-wrap: nowrap;
  10206. width: fit-content;
  10207. margin: 10px 0 10px 0;
  10208. align-items: center;
  10209. }
  10210. .tool + .tool {
  10211. margin-right: 45px;
  10212. }
  10213. .whiteBIcon {
  10214. width: 80px;
  10215. cursor: pointer;
  10216. display: flex;
  10217. flex-direction: column;
  10218. flex-wrap: nowrap;
  10219. align-items: center;
  10220. }
  10221. .whiteBIcon > img,
  10222. .toolIcon > img,
  10223. .arrow > img {
  10224. width: 100%;
  10225. height: 100%;
  10226. }
  10227. .check img {
  10228. width: 20px;
  10229. height: 20px;
  10230. }
  10231. .whiteBIcon > img {
  10232. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  10233. border-radius: 15px;
  10234. }
  10235. .check {
  10236. /* width: 20px;
  10237. height: 20px; */
  10238. cursor: pointer;
  10239. margin: 10px 0;
  10240. }
  10241. .checkDiv {
  10242. display: flex;
  10243. align-items: center;
  10244. }
  10245. .checkDiv span {
  10246. margin-left: 5px;
  10247. color: #858585;
  10248. }
  10249. .customWidth >>> .el-dialog {
  10250. min-width: 500px !important;
  10251. }
  10252. .a_addBox {
  10253. margin: 10px 0;
  10254. background: #fff;
  10255. padding: 15px;
  10256. max-height: 600px;
  10257. overflow: auto;
  10258. }
  10259. .a_add_box {
  10260. border-bottom: 2px solid #eee;
  10261. padding-bottom: 10px;
  10262. }
  10263. .a_add_head {
  10264. display: flex;
  10265. align-items: center;
  10266. justify-content: space-between;
  10267. margin: 10px 0;
  10268. font-size: 18px;
  10269. }
  10270. .a_add_checkType {
  10271. margin-top: 10px;
  10272. display: flex;
  10273. font-size: 16px;
  10274. }
  10275. .a_add_checkType span {
  10276. box-sizing: border-box;
  10277. padding: 0 0 5px 0;
  10278. cursor: pointer;
  10279. }
  10280. .a_add_checkType span + span {
  10281. margin-left: 10px;
  10282. }
  10283. .a_add_checkType .active {
  10284. border-bottom: 2px solid #409eff;
  10285. color: #409eff;
  10286. }
  10287. .a_add_head .a_add_head_input {
  10288. width: 300px;
  10289. }
  10290. .a_add_head .a_add_head_div {
  10291. display: flex;
  10292. align-items: center;
  10293. justify-content: space-between;
  10294. }
  10295. .a_add_body {
  10296. display: flex;
  10297. /* align-items: center; */
  10298. align-items: flex-end;
  10299. }
  10300. .a_add_input {
  10301. display: flex;
  10302. align-items: center;
  10303. flex-wrap: wrap;
  10304. }
  10305. .a_add_input_choice {
  10306. flex-direction: column;
  10307. margin-right: 10px;
  10308. }
  10309. .a_add_input_choice >>> .el-radio {
  10310. display: flex;
  10311. align-items: center;
  10312. flex-direction: row-reverse;
  10313. margin: 10px 0 0 0;
  10314. }
  10315. .a_add_input_choice >>> .el-checkbox {
  10316. display: flex;
  10317. align-items: center;
  10318. flex-direction: row-reverse;
  10319. margin: 10px 0 0 0;
  10320. }
  10321. .width100 {
  10322. width: 100%;
  10323. }
  10324. .a_add_input .a_add_persent {
  10325. width: 100%;
  10326. }
  10327. .a_add_persent_div {
  10328. width: 100%;
  10329. display: flex;
  10330. align-items: center;
  10331. }
  10332. .a_add_persent_div span {
  10333. margin: 5px 0;
  10334. }
  10335. .a_add_persent_div span:nth-child(1) {
  10336. width: 30%;
  10337. }
  10338. .a_add_persent_div span:nth-child(2) {
  10339. width: 7%;
  10340. }
  10341. .a_add_persent_div span:nth-child(3) {
  10342. width: 40%;
  10343. }
  10344. .a_add_body_div {
  10345. display: flex;
  10346. align-items: center;
  10347. justify-content: center;
  10348. /* flex-direction: column; */
  10349. }
  10350. .all_choose {
  10351. display: flex;
  10352. flex-direction: row;
  10353. align-items: flex-start;
  10354. width: 100%;
  10355. }
  10356. .all_choose > span {
  10357. min-width: 80px;
  10358. width: 80px;
  10359. display: block;
  10360. white-space: nowrap;
  10361. overflow: hidden;
  10362. text-overflow: ellipsis;
  10363. text-align-last: justify;
  10364. margin-right: 10px;
  10365. }
  10366. .all_choose >>> .el-checkbox-group {
  10367. display: flex;
  10368. flex-direction: row;
  10369. width: 100%;
  10370. flex-wrap: wrap;
  10371. align-content: center;
  10372. justify-content: flex-start;
  10373. align-items: center;
  10374. margin-top: 3px;
  10375. }
  10376. .all_choose > .el-checkbox-group >>> .el-checkbox {
  10377. margin-bottom: 10px;
  10378. display: flex;
  10379. flex-direction: row;
  10380. align-items: center;
  10381. }
  10382. .all_choose > .el-checkbox-group > .el-checkbox >>> .el-checkbox__label {
  10383. min-width: 80px;
  10384. overflow: hidden;
  10385. width: 80px;
  10386. text-overflow: ellipsis;
  10387. white-space: nowrap;
  10388. }
  10389. .all_choose > .el-checkbox-group > .el-checkbox >>> .el-checkbox__label:hover {
  10390. width: auto;
  10391. }
  10392. .choose > div:nth-child(3) > span {
  10393. /* letter-spacing: 0 !important; */
  10394. }
  10395. .choose {
  10396. display: flex;
  10397. flex-direction: column;
  10398. flex-wrap: nowrap;
  10399. height: 100%;
  10400. justify-content: space-evenly;
  10401. align-items: flex-start;
  10402. }
  10403. .both {
  10404. display: flex;
  10405. flex-direction: row;
  10406. flex-wrap: wrap;
  10407. width: 100%;
  10408. align-items: center;
  10409. justify-content: flex-start;
  10410. margin: 30px 0;
  10411. }
  10412. .subjectBox {
  10413. display: flex;
  10414. flex-wrap: wrap;
  10415. width: 100%;
  10416. align-items: center;
  10417. }
  10418. .subjectList {
  10419. }
  10420. .subjectBtn {
  10421. margin-left: 10px;
  10422. border-radius: 5px;
  10423. border: 1px dashed #bfbfbf;
  10424. padding: 2px 5px;
  10425. cursor: pointer;
  10426. font-size: 14px;
  10427. color: #545454;
  10428. }
  10429. .notice >>> .el-dialog {
  10430. width: 500px !important;
  10431. text-align: center;
  10432. }
  10433. .notice >>> .el-button {
  10434. margin-top: 20px;
  10435. }
  10436. .whiteBg {
  10437. background: #fff;
  10438. border-radius: 10px;
  10439. }
  10440. .chooseWho {
  10441. display: flex;
  10442. width: 380px;
  10443. flex-direction: row;
  10444. flex-wrap: nowrap;
  10445. justify-content: space-between;
  10446. padding-bottom: 10px;
  10447. }
  10448. .chooseWho > div {
  10449. cursor: pointer;
  10450. padding-bottom: 10px;
  10451. font-weight: bold;
  10452. }
  10453. .isChooseActive {
  10454. color: #3e88f4;
  10455. border-bottom: 2px solid #2f80f3;
  10456. }
  10457. .toolSort {
  10458. display: flex;
  10459. flex-direction: row;
  10460. flex-wrap: wrap;
  10461. justify-content: flex-start;
  10462. align-items: flex-start;
  10463. }
  10464. .toolSort > div {
  10465. margin-right: 45px;
  10466. }
  10467. .tools {
  10468. width: 100%;
  10469. display: flex;
  10470. flex-direction: column;
  10471. flex-wrap: nowrap;
  10472. align-items: flex-start;
  10473. }
  10474. .leftTools,
  10475. .rightTools {
  10476. width: 50%;
  10477. }
  10478. .rightTools {
  10479. display: flex;
  10480. flex-direction: row;
  10481. flex-wrap: nowrap;
  10482. justify-content: space-around;
  10483. }
  10484. .firstToolList {
  10485. display: flex;
  10486. flex-direction: column;
  10487. flex-wrap: nowrap;
  10488. align-items: center;
  10489. }
  10490. .iconList {
  10491. display: flex;
  10492. flex-direction: row;
  10493. flex-wrap: wrap;
  10494. justify-content: flex-start;
  10495. align-items: center;
  10496. margin: 20px 0 5px 0;
  10497. width: 240px;
  10498. min-width: 240px;
  10499. }
  10500. .iconTool {
  10501. display: flex;
  10502. flex-direction: column;
  10503. flex-wrap: nowrap;
  10504. align-items: center;
  10505. justify-content: flex-start;
  10506. margin: 15px 10px;
  10507. }
  10508. .toolIcon {
  10509. width: 50px;
  10510. }
  10511. .taskBorder {
  10512. border: 1px solid #e1e1e1;
  10513. border-radius: 10px;
  10514. margin-top: 20px;
  10515. min-height: 690px;
  10516. position: relative;
  10517. background: #fbfbfb;
  10518. }
  10519. .smallTaskBorder {
  10520. height: 170px;
  10521. min-height: 170px !important;
  10522. overflow: hidden;
  10523. }
  10524. .taskBorder > div {
  10525. padding: 30px 0 10px 30px;
  10526. }
  10527. .addTaskBorder {
  10528. border: 2px solid #e1e1e1;
  10529. border-radius: 10px;
  10530. margin-top: 25px;
  10531. cursor: pointer;
  10532. }
  10533. .addTaskBorder > div {
  10534. margin: 0 auto;
  10535. display: flex;
  10536. align-items: center;
  10537. justify-content: center;
  10538. }
  10539. .addTaskBorder > div > img {
  10540. width: 100px;
  10541. }
  10542. .addTaskBorder > div > span {
  10543. font-size: 23px;
  10544. color: #dbdbdb;
  10545. }
  10546. .task_add_title {
  10547. margin: 50px 0px 10px;
  10548. font-size: 1.5em;
  10549. font-weight: 700;
  10550. color: #0f7eff;
  10551. }
  10552. .task_add_title::after {
  10553. content: "提示:建议不要多账户同时编辑同一个任务";
  10554. font-size: 14px;
  10555. margin-left: 5px;
  10556. font-weight: 400;
  10557. color: #ff3a3a;
  10558. }
  10559. .funBlock {
  10560. display: flex;
  10561. padding: 15px 0;
  10562. flex-direction: row;
  10563. justify-content: flex-end;
  10564. align-items: center;
  10565. position: absolute;
  10566. right: 15px;
  10567. bottom: 35px;
  10568. }
  10569. .fold {
  10570. display: flex;
  10571. margin: 0 10px;
  10572. flex-direction: row;
  10573. align-items: center;
  10574. cursor: pointer;
  10575. }
  10576. .arrow {
  10577. width: 15px;
  10578. height: 15px;
  10579. margin-left: 10px;
  10580. }
  10581. .addToolFunBox {
  10582. display: flex;
  10583. width: 100%;
  10584. align-items: center;
  10585. justify-content: center;
  10586. margin-bottom: 35px;
  10587. }
  10588. .addToolFun + .addToolFun {
  10589. margin-left: 10px;
  10590. }
  10591. .addToolFun {
  10592. display: flex;
  10593. width: 150px;
  10594. flex-direction: row;
  10595. align-items: center;
  10596. justify-content: center;
  10597. border: 1px dashed;
  10598. border-radius: 5px;
  10599. height: 50px;
  10600. /* margin: 35px auto 0; */
  10601. cursor: pointer;
  10602. }
  10603. .addToolImg {
  10604. width: 30px;
  10605. height: 30px;
  10606. margin-right: 20px;
  10607. }
  10608. .addToolsDia >>> .el-dialog__body {
  10609. padding: 20px;
  10610. }
  10611. .addToolsDia >>> .el-dialog__body > .toolChoose {
  10612. padding: 0;
  10613. }
  10614. .addToolsDia >>> .el-dialog__body > .toolChoose > .leftTools {
  10615. padding: 0;
  10616. border-bottom: none;
  10617. margin-bottom: 0;
  10618. }
  10619. .addToolsDia >>> .el-dialog__body > .toolChoose > .leftTools > .chooseWho {
  10620. width: 100%;
  10621. }
  10622. .lineCss >>> .el-form-item__label {
  10623. width: auto !important;
  10624. }
  10625. .lineCss >>> .el-form-item__content {
  10626. margin-left: 50px !important;
  10627. }
  10628. .newSteps {
  10629. display: flex;
  10630. width: 100% !important;
  10631. height: 80px;
  10632. cursor: pointer;
  10633. margin: 10px 0;
  10634. border-radius: 10px;
  10635. flex-direction: row;
  10636. align-content: center;
  10637. justify-content: center;
  10638. align-items: center;
  10639. margin: 0 !important;
  10640. }
  10641. /* 评价样式 */
  10642. .elist_css {
  10643. padding-bottom: 60px !important;
  10644. }
  10645. .elist_title {
  10646. margin-bottom: 10px;
  10647. }
  10648. .elist_input {
  10649. }
  10650. .elist_input_box {
  10651. display: flex;
  10652. align-items: center;
  10653. flex-wrap: wrap;
  10654. }
  10655. .elist_input_box + .elist_input_box {
  10656. margin-top: 30px;
  10657. }
  10658. .elist_input .elist_input_box input {
  10659. font: inherit;
  10660. color: currentColor;
  10661. /* width: 200px; */
  10662. max-width: 200px;
  10663. padding: 8px 14px;
  10664. display: block;
  10665. min-width: 0;
  10666. outline: none;
  10667. border: 1px solid rgba(0, 0, 0, 0.23);
  10668. border-radius: 4px;
  10669. box-sizing: border-box;
  10670. background: #fff;
  10671. margin: 0 20px 0 0;
  10672. }
  10673. .elist_input .elist_input_box span {
  10674. height: 36px;
  10675. line-height: 36px;
  10676. color: rgb(82, 82, 82);
  10677. min-width: 80px;
  10678. }
  10679. .elist_input .elist_input_box .remove {
  10680. height: 20px;
  10681. width: 20px;
  10682. background-size: 100% 100%;
  10683. background-position: unset;
  10684. margin-left: 5px;
  10685. }
  10686. .elist_input_box >>> .el-rate {
  10687. display: flex;
  10688. height: 36px;
  10689. align-items: center;
  10690. }
  10691. .elist_input_box .elist_inptu_text {
  10692. width: 100%;
  10693. display: flex;
  10694. align-items: center;
  10695. margin-top: 10px;
  10696. }
  10697. .elist_input_box .elist_inptu_text input {
  10698. /* width: 500px; */
  10699. width: 100%;
  10700. max-width: unset;
  10701. }
  10702. .elist_input_box >>> .el-rate__icon {
  10703. font-size: 24px;
  10704. }
  10705. .elist_btn {
  10706. margin-top: 10px;
  10707. }
  10708. .lineTitle {
  10709. margin-top: 15px;
  10710. width: 110px;
  10711. }
  10712. .courseTop {
  10713. display: flex;
  10714. flex-direction: row;
  10715. justify-content: flex-start;
  10716. align-items: center;
  10717. /* width: 100%; */
  10718. width: calc(100% - 20px);
  10719. /* background: rgb(255, 255, 255); */
  10720. /* border-radius: 10px; */
  10721. padding: 20px 0;
  10722. }
  10723. .stepsNav {
  10724. display: flex;
  10725. flex-direction: row;
  10726. justify-content: flex-start;
  10727. align-items: center;
  10728. }
  10729. .stepsWord {
  10730. font-size: 18px;
  10731. color: #fff;
  10732. font-weight: bold;
  10733. margin-left: auto;
  10734. background: rgb(15, 126, 255);
  10735. border-radius: 5px;
  10736. padding: 3px 25px;
  10737. box-sizing: border-box;
  10738. }
  10739. .rightBox {
  10740. width: calc(100% - 20px);
  10741. background: rgb(255, 255, 255);
  10742. border-radius: 10px;
  10743. overflow: auto;
  10744. height: calc(100% - 130px);
  10745. position: relative;
  10746. }
  10747. .e_add_top {
  10748. display: flex;
  10749. justify-content: space-between;
  10750. padding: 20px 20px 0 20px;
  10751. border-radius: 3px;
  10752. background: #fff;
  10753. }
  10754. .e_add_title2 {
  10755. display: flex;
  10756. align-items: center;
  10757. }
  10758. .e_add_title2 span {
  10759. width: 40px;
  10760. }
  10761. .e_add_title {
  10762. display: flex;
  10763. align-items: center;
  10764. color: #b8b8b8;
  10765. font-size: 18px;
  10766. position: relative;
  10767. height: 40px;
  10768. }
  10769. .e_add_title span {
  10770. margin-right: 10px;
  10771. }
  10772. .e_add_title .el_input {
  10773. width: 300px;
  10774. }
  10775. .e_add_title >>> .el-input__inner {
  10776. width: 400px;
  10777. }
  10778. .e_add_btn {
  10779. }
  10780. .e_add_content {
  10781. display: flex;
  10782. width: 100%;
  10783. }
  10784. .e_add_list {
  10785. background: #fff;
  10786. height: 500px;
  10787. width: 210px;
  10788. position: relative;
  10789. margin: 15px 5px 0 0;
  10790. flex-shrink: 0;
  10791. display: flex;
  10792. flex-direction: column;
  10793. }
  10794. .e_add_list_title {
  10795. font-size: 20px;
  10796. width: 100%;
  10797. box-sizing: border-box;
  10798. padding: 15px 40px;
  10799. text-align: center;
  10800. border-bottom: 1px solid #eaeaea;
  10801. position: relative;
  10802. display: flex;
  10803. align-items: center;
  10804. justify-content: center;
  10805. height: 57px;
  10806. background: #f6f6f6;
  10807. }
  10808. .e_add_list_title span {
  10809. overflow: hidden;
  10810. white-space: nowrap;
  10811. text-overflow: ellipsis;
  10812. }
  10813. .e_add_list_title img {
  10814. position: absolute;
  10815. right: 15px;
  10816. width: 25px;
  10817. cursor: pointer;
  10818. top: 50%;
  10819. transform: translateY(-50%);
  10820. }
  10821. .e_add_list_body {
  10822. height: calc(100% - 187px);
  10823. overflow: auto;
  10824. }
  10825. .e_add_list_child {
  10826. width: 100%;
  10827. display: flex;
  10828. align-items: center;
  10829. justify-content: center;
  10830. position: relative;
  10831. box-sizing: border-box;
  10832. padding: 15px 40px;
  10833. text-align: center;
  10834. }
  10835. .e_add_list_child span {
  10836. overflow: hidden;
  10837. white-space: nowrap;
  10838. text-overflow: ellipsis;
  10839. cursor: pointer;
  10840. }
  10841. .e_add_list_child img {
  10842. position: absolute;
  10843. right: 10px;
  10844. width: 21px;
  10845. cursor: pointer;
  10846. top: 50%;
  10847. transform: translateY(-50%);
  10848. }
  10849. .e_add_list_child + .e_add_list_child {
  10850. border-top: 1px solid #eaeaea;
  10851. }
  10852. .e_add_list_child .active {
  10853. color: #409eff;
  10854. }
  10855. .e_add_list_btn {
  10856. position: absolute;
  10857. bottom: 0;
  10858. height: 50px;
  10859. background: rgb(120, 120, 254);
  10860. width: 100%;
  10861. color: #fff;
  10862. font-size: 16px;
  10863. text-align: center;
  10864. line-height: 50px;
  10865. cursor: pointer;
  10866. }
  10867. .e_add_list_detail {
  10868. position: absolute;
  10869. bottom: 0;
  10870. height: 130px;
  10871. background: rgb(120, 120, 254);
  10872. width: 100%;
  10873. color: #fff;
  10874. font-size: 16px;
  10875. display: flex;
  10876. align-items: center;
  10877. justify-content: center;
  10878. }
  10879. .e_add_list_detail textarea {
  10880. height: 90%;
  10881. width: 95%;
  10882. border: none;
  10883. resize: none;
  10884. outline: none;
  10885. padding: 5px;
  10886. box-sizing: border-box;
  10887. }
  10888. .e_add_list_pbox {
  10889. width: 100%;
  10890. }
  10891. .e_add_list_pbox_title {
  10892. height: 50px;
  10893. background: #fff;
  10894. display: flex;
  10895. align-items: center;
  10896. width: 100%;
  10897. box-sizing: border-box;
  10898. padding: 0 20px;
  10899. flex-direction: row;
  10900. flex-wrap: wrap;
  10901. }
  10902. .type_title {
  10903. font-size: 18px;
  10904. font-weight: 700;
  10905. }
  10906. .type_content {
  10907. font-size: 16px;
  10908. margin-left: 30px;
  10909. }
  10910. .type_content span + span {
  10911. margin-left: 20px;
  10912. }
  10913. .type_content span {
  10914. cursor: pointer;
  10915. padding-bottom: 5px;
  10916. box-sizing: border-box;
  10917. }
  10918. .type_content .active {
  10919. color: #409eff;
  10920. border-bottom: 2px solid #409eff;
  10921. }
  10922. .e_add_list_pbox_content {
  10923. height: calc(100% - 50px);
  10924. display: flex;
  10925. align-items: center;
  10926. width: 100%;
  10927. background: #fff;
  10928. }
  10929. .mbCss {
  10930. width: 100%;
  10931. display: flex;
  10932. flex-direction: row;
  10933. flex-wrap: nowrap;
  10934. align-content: center;
  10935. align-items: flex-start;
  10936. justify-content: flex-start;
  10937. }
  10938. .pjCss {
  10939. /* width: 42%; */
  10940. width: calc(100% - 55%);
  10941. display: flex;
  10942. flex-direction: column;
  10943. flex-wrap: nowrap;
  10944. align-items: flex-start;
  10945. margin-top: 1.5%;
  10946. }
  10947. .e_box {
  10948. display: flex;
  10949. flex-wrap: wrap;
  10950. max-height: 500px;
  10951. align-items: flex-start;
  10952. overflow: auto;
  10953. }
  10954. .e_card {
  10955. border: 1px solid #ccc;
  10956. background: #fff;
  10957. margin-right: 20px;
  10958. width: 270px;
  10959. display: flex;
  10960. flex-direction: column;
  10961. align-items: center;
  10962. border-radius: 5px;
  10963. margin-top: 10px;
  10964. text-align: center;
  10965. }
  10966. .e_card_picture {
  10967. margin: 10px 0;
  10968. }
  10969. .e_card_picture > img {
  10970. width: 50px;
  10971. }
  10972. .e_card_name {
  10973. width: 100%;
  10974. padding: 0 10px;
  10975. box-sizing: border-box;
  10976. margin-bottom: 10px;
  10977. overflow: hidden;
  10978. text-overflow: ellipsis;
  10979. white-space: nowrap;
  10980. }
  10981. .e_card_time {
  10982. width: 100%;
  10983. padding: 0 10px;
  10984. box-sizing: border-box;
  10985. font-size: 15px;
  10986. color: #c3c3c3;
  10987. margin-bottom: 10px;
  10988. }
  10989. .e_card_btn {
  10990. height: 40px;
  10991. display: flex;
  10992. align-items: center;
  10993. width: 100%;
  10994. background: rgb(244, 244, 244);
  10995. }
  10996. .e_card_btn:hover {
  10997. background: rgb(221 221 221);
  10998. }
  10999. .e_card_btn span {
  11000. flex: 1 1 auto;
  11001. text-align: center;
  11002. cursor: pointer;
  11003. }
  11004. .addEva {
  11005. border: 1px solid #ccc;
  11006. background: #fff;
  11007. margin-right: 20px;
  11008. width: 270px;
  11009. height: 149px;
  11010. display: flex;
  11011. flex-direction: column;
  11012. align-items: center;
  11013. border-radius: 5px;
  11014. margin-top: 10px;
  11015. text-align: center;
  11016. cursor: pointer;
  11017. justify-content: center;
  11018. }
  11019. .addEva > img {
  11020. width: 50px;
  11021. object-fit: cover;
  11022. }
  11023. .uploadFm {
  11024. border: 1px dashed #ccc;
  11025. width: 202px;
  11026. height: 102px;
  11027. position: relative;
  11028. cursor: pointer;
  11029. }
  11030. .uploadFm > img {
  11031. position: absolute;
  11032. top: 25px;
  11033. left: 35%;
  11034. width: 50px;
  11035. }
  11036. .fileCss {
  11037. width: 100%;
  11038. display: flex;
  11039. flex-direction: row;
  11040. flex-wrap: nowrap;
  11041. justify-content: space-around;
  11042. align-items: center;
  11043. padding-top: 15px;
  11044. }
  11045. .sysPicBox {
  11046. display: flex;
  11047. flex-direction: row;
  11048. flex-wrap: wrap;
  11049. align-content: flex-start;
  11050. height: 435px;
  11051. overflow: auto;
  11052. }
  11053. .sysPic {
  11054. width: 200px;
  11055. height: 115px;
  11056. margin: 0 20px 20px 0;
  11057. cursor: pointer;
  11058. }
  11059. .sysPic > img,
  11060. .isSysPic > img,
  11061. .deletePic > img {
  11062. width: 100%;
  11063. height: 100%;
  11064. object-fit: cover;
  11065. }
  11066. .isSysPic {
  11067. width: 200px;
  11068. height: 115px;
  11069. position: relative;
  11070. }
  11071. .deletePic {
  11072. width: 20px;
  11073. height: 20px;
  11074. position: absolute;
  11075. top: 0;
  11076. right: 0;
  11077. cursor: pointer;
  11078. }
  11079. .select_box1 {
  11080. }
  11081. .select_box1_img {
  11082. background: #fff;
  11083. border-radius: 5px;
  11084. padding: 15px;
  11085. box-sizing: border-box;
  11086. margin-bottom: 20px;
  11087. }
  11088. .select_box1_title {
  11089. padding: 0 0 15px 0;
  11090. border-bottom: 1px solid #eee;
  11091. margin-bottom: 15px;
  11092. }
  11093. .select_box1_title span:nth-child(1) {
  11094. font-size: 16px;
  11095. margin-right: 20px;
  11096. color: #000;
  11097. }
  11098. .select_box1_title span:nth-child(2) {
  11099. font-size: 14px;
  11100. color: rgb(112, 112, 112);
  11101. }
  11102. .select_box1_add_img {
  11103. }
  11104. .select_box1_select {
  11105. background: #fff;
  11106. border-radius: 5px;
  11107. padding: 15px;
  11108. box-sizing: border-box;
  11109. }
  11110. .select_box2 {
  11111. }
  11112. .select_box2_title {
  11113. background: #fff;
  11114. border-radius: 5px;
  11115. padding: 5px 10px;
  11116. box-sizing: border-box;
  11117. margin-bottom: 10px;
  11118. }
  11119. .select_box2_box {
  11120. display: flex;
  11121. height: 500px;
  11122. }
  11123. .select_box2_img {
  11124. width: calc(100% - 310px);
  11125. height: 100%;
  11126. overflow: auto;
  11127. background: #fff;
  11128. border-radius: 5px;
  11129. }
  11130. .select_box2_img img {
  11131. width: 100%;
  11132. }
  11133. .select_box2_answer {
  11134. background: #fff;
  11135. margin-left: 10px;
  11136. border-radius: 5px;
  11137. width: 300px;
  11138. overflow: auto;
  11139. height: 100%;
  11140. display: flex;
  11141. flex-direction: column;
  11142. align-items: center;
  11143. padding-top: 10px;
  11144. box-sizing: border-box;
  11145. }
  11146. .select_box2_answer_box {
  11147. margin: 0 0 10px 0;
  11148. width: 85%;
  11149. }
  11150. .rate_textarea {
  11151. font: inherit;
  11152. color: currentColor;
  11153. width: 100%;
  11154. padding: 8px 14px;
  11155. display: block;
  11156. min-width: 0;
  11157. outline: none;
  11158. border: 1px solid rgba(0, 0, 0, 0.23);
  11159. border-radius: 4px;
  11160. box-sizing: border-box;
  11161. background: #fff;
  11162. margin: 0 20px 0 0;
  11163. resize: none;
  11164. }
  11165. .select_answer_title {
  11166. text-align: left;
  11167. width: 85%;
  11168. margin-bottom: 10px;
  11169. font-size: 18px;
  11170. color: #8e8e8e;
  11171. }
  11172. .mask {
  11173. background-color: rgb(0 0 0 / 30%);
  11174. /* position: fixed; */
  11175. position: absolute;
  11176. top: 0;
  11177. left: 0;
  11178. width: 100%;
  11179. height: 100%;
  11180. z-index: 90;
  11181. display: flex;
  11182. align-items: center;
  11183. justify-content: center;
  11184. }
  11185. .mask2 {
  11186. position: fixed !important;
  11187. z-index: 999999;
  11188. }
  11189. .progressBox {
  11190. width: 300px;
  11191. height: 150px;
  11192. background: #fff;
  11193. border-radius: 10px;
  11194. box-shadow: 0 0 6px 1px #bfbfbf;
  11195. display: flex;
  11196. align-items: center;
  11197. justify-content: center;
  11198. flex-direction: column;
  11199. position: relative;
  11200. color: #6c6c6c;
  11201. }
  11202. .progressBox .lbox {
  11203. height: 80px;
  11204. font-size: 16px;
  11205. display: flex;
  11206. align-items: center;
  11207. }
  11208. .progressBox .lbox img {
  11209. width: 40px;
  11210. margin-right: 20px;
  11211. }
  11212. .progressBox >>> .el-progress-bar__outer {
  11213. background-color: #d1dfff !important;
  11214. }
  11215. .mask .lbox2 {
  11216. height: 100%;
  11217. width: 100%;
  11218. font-size: 19px;
  11219. display: flex;
  11220. align-items: center;
  11221. justify-content: center;
  11222. }
  11223. .mask .lbox2 img {
  11224. width: 40px;
  11225. }
  11226. .updateTips::after {
  11227. content: "他人课程暂不支持修改基本信息,只支持修改阶段内容。";
  11228. font-size: 14px;
  11229. margin-left: 20px;
  11230. font-weight: 400;
  11231. color: #ff3a3a;
  11232. }
  11233. .updateMask {
  11234. width: 100%;
  11235. z-index: 3;
  11236. top: 0;
  11237. position: absolute;
  11238. }
  11239. .t_j_box {
  11240. display: flex;
  11241. }
  11242. .t_j_box span:nth-child(1) {
  11243. width: 15%;
  11244. overflow: hidden;
  11245. margin-right: 10px;
  11246. text-overflow: ellipsis;
  11247. white-space: nowrap;
  11248. }
  11249. .t_j_box span:nth-child(2) {
  11250. min-width: 30px;
  11251. margin-right: 10px;
  11252. }
  11253. .t_j_box span:nth-child(3) {
  11254. width: 38%;
  11255. overflow: hidden;
  11256. text-overflow: ellipsis;
  11257. margin-right: 10px;
  11258. }
  11259. .t_j_box span:nth-child(4) {
  11260. max-width: calc(45% - 60px);
  11261. overflow: hidden;
  11262. text-overflow: ellipsis;
  11263. }
  11264. .sentenBox {
  11265. background: #fff;
  11266. height: 600px;
  11267. overflow: auto;
  11268. background-image: url("../../../assets/icon/conSentences/csBg.png");
  11269. background-position: 102%;
  11270. background-repeat: no-repeat;
  11271. background-size: 60%;
  11272. }
  11273. .addSen {
  11274. background: #409efe;
  11275. width: 90px;
  11276. color: #fff;
  11277. height: 35px;
  11278. text-align: center;
  11279. line-height: 35px;
  11280. border-radius: 5px;
  11281. float: right;
  11282. margin: 10px 20px 0 0;
  11283. cursor: pointer;
  11284. }
  11285. .sentenTop {
  11286. display: flex;
  11287. flex-direction: row;
  11288. flex-wrap: nowrap;
  11289. align-items: center;
  11290. }
  11291. .sentenTop > div:nth-child(2) {
  11292. width: 300px;
  11293. margin: 0 15px;
  11294. }
  11295. .sentenTop > div:nth-child(3) {
  11296. background: #409efe;
  11297. color: #fff;
  11298. width: 65px;
  11299. height: 35px;
  11300. text-align: center;
  11301. line-height: 35px;
  11302. border-radius: 5px;
  11303. cursor: pointer;
  11304. }
  11305. .cardList {
  11306. padding: 30px 0 20px 0;
  11307. display: flex;
  11308. flex-direction: row;
  11309. flex-wrap: wrap;
  11310. align-items: center;
  11311. box-sizing: border-box;
  11312. border-bottom: 1px solid #f4f4f4;
  11313. width: 98%;
  11314. margin: 0 auto;
  11315. }
  11316. .cardBox {
  11317. display: flex;
  11318. flex-direction: row;
  11319. flex-wrap: wrap;
  11320. align-items: center;
  11321. align-content: center;
  11322. }
  11323. .isCard,
  11324. .isCard1 {
  11325. width: 140px;
  11326. height: 65px;
  11327. text-align: center;
  11328. line-height: 65px;
  11329. font-size: 20px;
  11330. cursor: pointer;
  11331. background-image: url("../../../assets/icon/conSentences/titleBorder.png");
  11332. background-size: cover;
  11333. position: relative;
  11334. z-index: 99;
  11335. }
  11336. .isCard1 {
  11337. background-image: url("../../../assets/icon/conSentences/answerBorder.png");
  11338. }
  11339. .isCard:hover .deleteWord {
  11340. display: block;
  11341. }
  11342. .isCard > div:nth-child(1),
  11343. .isCard1 > div:nth-child(1) {
  11344. white-space: nowrap;
  11345. overflow: hidden;
  11346. text-overflow: ellipsis;
  11347. width: 80%;
  11348. margin: 0 auto;
  11349. }
  11350. .card {
  11351. width: 140px;
  11352. height: 65px;
  11353. }
  11354. .card > img {
  11355. width: 100%;
  11356. height: 100%;
  11357. }
  11358. .rightCardBox {
  11359. margin: 10px 0 0 10px;
  11360. }
  11361. .rightCardBox > div:nth-child(1) {
  11362. margin-bottom: 10px;
  11363. }
  11364. .cardCss {
  11365. display: flex;
  11366. flex-direction: column;
  11367. flex-wrap: nowrap;
  11368. align-items: center;
  11369. border-bottom: 3px solid #b4c3d3;
  11370. padding: 0 0 5px 0;
  11371. margin-right: 10px;
  11372. }
  11373. .cardCss > div:nth-child(2) {
  11374. background: #5b7b9d;
  11375. color: #fff;
  11376. width: 20px;
  11377. height: 20px;
  11378. border-radius: 50%;
  11379. text-align: center;
  11380. line-height: 20px;
  11381. }
  11382. .sentenTopBox {
  11383. display: flex;
  11384. flex-direction: row;
  11385. flex-wrap: nowrap;
  11386. align-items: center;
  11387. justify-content: space-between;
  11388. padding: 55px 0 0 20px;
  11389. box-sizing: border-box;
  11390. width: 85%;
  11391. }
  11392. .stepsBottom {
  11393. width: 85%;
  11394. margin-bottom: 20px;
  11395. box-shadow: 0 0 10px 10px #f7f7f7;
  11396. background: #f7f7f7;
  11397. border-radius: 10px;
  11398. overflow: hidden;
  11399. }
  11400. .navTop {
  11401. background: #53749b;
  11402. color: #fff;
  11403. height: 40px;
  11404. line-height: 40px;
  11405. padding-left: 15px;
  11406. font-size: 18px;
  11407. }
  11408. .navBottom {
  11409. background: #6b91b7;
  11410. height: 180px;
  11411. overflow: auto;
  11412. }
  11413. .navTask {
  11414. display: flex;
  11415. flex-direction: row;
  11416. flex-wrap: nowrap;
  11417. align-items: center;
  11418. padding: 5px 5px 5px 0;
  11419. cursor: pointer;
  11420. background: #ffffff;
  11421. width: 95%;
  11422. margin: 10px auto;
  11423. box-sizing: border-box;
  11424. border-radius: 5px;
  11425. }
  11426. .isNavTask {
  11427. /* background: #7e9ebd; */
  11428. }
  11429. .navTask > div:nth-child(1) {
  11430. background: #468fe4;
  11431. color: #fff;
  11432. width: 65px;
  11433. height: 25px;
  11434. line-height: 25px;
  11435. text-align: center;
  11436. border-radius: 5px;
  11437. margin: 0 10px 0 5px;
  11438. font-size: 14px;
  11439. }
  11440. .navTask > div:nth-child(2) {
  11441. /* color: #fff; */
  11442. /* max-width: 130px; */
  11443. width: 130px;
  11444. white-space: nowrap;
  11445. overflow: hidden;
  11446. text-overflow: ellipsis;
  11447. font-size: 15px;
  11448. }
  11449. .groupBox {
  11450. }
  11451. .groupContent + .groupContent {
  11452. margin-top: 30px;
  11453. }
  11454. .groupTitle {
  11455. font-size: 24px;
  11456. color: rgb(80, 80, 80);
  11457. margin-bottom: 20px;
  11458. }
  11459. .groupName {
  11460. display: flex;
  11461. align-items: center;
  11462. }
  11463. .groupn {
  11464. font-size: 15px;
  11465. margin-right: 10px;
  11466. }
  11467. .groupName + .groupName {
  11468. margin-top: 15px;
  11469. }
  11470. .groupBtn {
  11471. margin-left: 10px;
  11472. }
  11473. .groupContent >>> .el-input-number.is-without-controls .el-input__inner {
  11474. text-align: left;
  11475. }
  11476. .toolimg {
  11477. width: 200px;
  11478. border-radius: 10px;
  11479. box-shadow: rgb(223 218 218) 0px 0px 6px 1px;
  11480. cursor: pointer;
  11481. overflow: hidden;
  11482. position: relative;
  11483. }
  11484. .toolimg > img {
  11485. width: 100%;
  11486. height: 105px;
  11487. object-fit: contain;
  11488. }
  11489. .proMan {
  11490. width: 95%;
  11491. margin: 0 auto;
  11492. padding: 0 0 20px;
  11493. margin-top: 20px;
  11494. }
  11495. .proMan .title {
  11496. margin-bottom: 10px;
  11497. display: flex;
  11498. align-items: center;
  11499. }
  11500. .proMan .title img {
  11501. margin-right: 5px;
  11502. height: 17px;
  11503. width: 17px;
  11504. }
  11505. .ed_s >>> .text {
  11506. height: calc(100% - 42px);
  11507. }
  11508. .toolimg_box {
  11509. display: flex;
  11510. flex-wrap: wrap;
  11511. }
  11512. .toolimg {
  11513. margin: 0 20px 20px 0;
  11514. }
  11515. .comment {
  11516. background: #f5f5f5;
  11517. /* border-radius: 0 0 15px 15px; */
  11518. display: flex;
  11519. flex-direction: row;
  11520. flex-wrap: nowrap;
  11521. align-items: center;
  11522. justify-content: flex-end;
  11523. height: 35px;
  11524. }
  11525. .worksName {
  11526. display: flex;
  11527. width: 92%;
  11528. flex-direction: row;
  11529. flex-wrap: nowrap;
  11530. justify-content: space-between;
  11531. align-items: center;
  11532. margin: 0 10px;
  11533. }
  11534. .worksName > div:nth-child(1) {
  11535. width: 120px;
  11536. white-space: nowrap;
  11537. overflow: hidden;
  11538. text-overflow: ellipsis;
  11539. }
  11540. .deleteImg {
  11541. width: 25px !important;
  11542. height: 25px !important;
  11543. cursor: pointer;
  11544. position: absolute;
  11545. top: 10px;
  11546. right: 10px;
  11547. }
  11548. .texttitle {
  11549. background: #1e5cc9;
  11550. /* width: 98%; */
  11551. height: 45px;
  11552. color: #fff;
  11553. line-height: 45px;
  11554. padding-left: 20px;
  11555. box-sizing: border-box;
  11556. }
  11557. .textBox {
  11558. font-size: 20px;
  11559. width: 90%;
  11560. display: flex;
  11561. flex-direction: column;
  11562. align-items: center;
  11563. margin: 20px auto 0;
  11564. }
  11565. .textContent {
  11566. font-size: 18px;
  11567. height: 450px;
  11568. width: 95%;
  11569. overflow: auto;
  11570. line-height: 30px;
  11571. }
  11572. .vedioTaskBox {
  11573. width: 100%;
  11574. display: flex;
  11575. flex-direction: row;
  11576. flex-wrap: nowrap;
  11577. align-items: center;
  11578. }
  11579. .box_course {
  11580. /* width: 60%; */
  11581. width: 81%;
  11582. }
  11583. .wheel {
  11584. width: 100%;
  11585. height: 100%;
  11586. }
  11587. .vedioList {
  11588. /* background: #f2f2f2; */
  11589. background: #fff;
  11590. border: 1px solid #ececec;
  11591. /* width: 38.8%; */
  11592. width: calc(100% - 83%);
  11593. height: 650px;
  11594. border-radius: 10px;
  11595. overflow: hidden;
  11596. }
  11597. .navTitile {
  11598. padding: 0 0px 0 15px;
  11599. background: #1e5cc9;
  11600. color: #fff;
  11601. height: 40px;
  11602. line-height: 40px;
  11603. border-top-left-radius: 10px;
  11604. border-top-right-radius: 10px;
  11605. }
  11606. .navBox {
  11607. background: rgb(255, 255, 255);
  11608. height: calc(100% - 40px);
  11609. padding: 5px 1px 0 1px;
  11610. overflow: auto;
  11611. }
  11612. .vedioTimeBox {
  11613. display: flex;
  11614. flex-direction: row;
  11615. align-items: center;
  11616. flex-wrap: nowrap;
  11617. position: relative;
  11618. }
  11619. .vedioName {
  11620. cursor: pointer;
  11621. margin: 0px 0px 10px 5px;
  11622. white-space: nowrap;
  11623. overflow: hidden;
  11624. text-overflow: ellipsis;
  11625. width: 100%;
  11626. }
  11627. .isClickNav {
  11628. color: #499eef;
  11629. }
  11630. .full_diy >>> .el-dialog {
  11631. margin: 0 !important;
  11632. height: 100%;
  11633. padding: 4px;
  11634. }
  11635. .full_diy >>> .el-dialog__body {
  11636. height: calc(100% - 100px);
  11637. }
  11638. .full_diy2 >>> .el-dialog__body {
  11639. height: calc(100% - 50px);
  11640. padding: 0;
  11641. }
  11642. .queTop {
  11643. display: flex;
  11644. padding: 20px 0 20px 30px;
  11645. width: 100%;
  11646. flex-direction: row;
  11647. justify-content: flex-start;
  11648. align-items: center;
  11649. border-bottom: 1px solid #eeeeee;
  11650. box-sizing: border-box;
  11651. }
  11652. .question {
  11653. width: 40px;
  11654. margin-right: 10px;
  11655. margin-top: 7px;
  11656. }
  11657. .queTitle {
  11658. margin-left: 5px;
  11659. font-size: 25px;
  11660. display: flex;
  11661. align-items: center;
  11662. }
  11663. .addEditor {
  11664. width: 100px;
  11665. height: 30px;
  11666. background: #42cda6;
  11667. color: #fff;
  11668. border-radius: 5px;
  11669. text-align: center;
  11670. line-height: 30px;
  11671. box-shadow: 1px 3px 6px 1px #bfbfbf;
  11672. cursor: pointer;
  11673. }
  11674. .answerWidth {
  11675. width: 250px !important;
  11676. }
  11677. .answerBg {
  11678. background: url("../../../assets/icon/answerBgNew.png") no-repeat;
  11679. background-size: cover;
  11680. width: 100%;
  11681. height: 120px;
  11682. padding: 0 10px;
  11683. box-sizing: border-box;
  11684. color: #fff;
  11685. text-align: center;
  11686. display: flex;
  11687. flex-direction: column;
  11688. flex-wrap: nowrap;
  11689. align-items: center;
  11690. position: relative;
  11691. justify-content: center;
  11692. }
  11693. .answerContent {
  11694. /* width: 215px; */
  11695. max-height: 60px;
  11696. word-break: break-all;
  11697. text-align: center;
  11698. /* white-space: nowrap; */
  11699. overflow: hidden;
  11700. text-overflow: ellipsis;
  11701. /* padding: 23px 0 0; */
  11702. -webkit-line-clamp: 3;
  11703. -webkit-box-orient: vertical;
  11704. display: -webkit-box;
  11705. font-size: 15px;
  11706. }
  11707. .fullStyle >>> .el-dialog__body {
  11708. height: 100% !important;
  11709. }
  11710. .fullStyle >>> .el-dialog,
  11711. .fullStyle {
  11712. width: 100% !important;
  11713. max-width: 100% !important;
  11714. height: 100% !important;
  11715. margin: 0 !important;
  11716. }
  11717. .tcMember + .tcMember::before {
  11718. content: "、";
  11719. }
  11720. .tcMember_box {
  11721. margin-left: 10px;
  11722. border: 1px solid #c0c4cc;
  11723. padding: 10px 14px;
  11724. border-radius: 4px;
  11725. background: #fff;
  11726. cursor: pointer;
  11727. color: #606266;
  11728. font-size: 14px;
  11729. width: 225px;
  11730. overflow: hidden;
  11731. text-overflow: ellipsis;
  11732. white-space: nowrap;
  11733. }
  11734. .upCss >>> .el-upload-list--picture .el-upload-list__item {
  11735. height: auto;
  11736. }
  11737. .upCss >>> .el-upload-list--picture .el-upload-list__item-thumbnail {
  11738. width: 200px;
  11739. height: 100px;
  11740. object-fit: contain;
  11741. background: unset;
  11742. }
  11743. .upCss
  11744. >>> .el-upload-list--picture
  11745. .el-upload-list__item.is-success
  11746. .el-upload-list__item-name {
  11747. display: none;
  11748. }
  11749. .redioStyle >>> .el-radio__input.is-checked + .el-radio__label {
  11750. color: rgb(0 123 255) !important;
  11751. }
  11752. .redioStyle >>> .el-checkbox__input.is-checked + .el-checkbox__label {
  11753. color: rgb(0 123 255) !important;
  11754. }
  11755. .closeCss {
  11756. position: absolute;
  11757. top: 8px;
  11758. right: 8px;
  11759. cursor: pointer;
  11760. width: 20px;
  11761. height: 20px;
  11762. }
  11763. .closeCss > img {
  11764. width: 100%;
  11765. height: 100%;
  11766. }
  11767. .f_size_box {
  11768. display: flex;
  11769. margin: 5px 0px;
  11770. align-items: center;
  11771. color: #6c6c6c;
  11772. }
  11773. .f_size_box img {
  11774. height: 20px;
  11775. }
  11776. .f_size_box > div {
  11777. margin: 0 8px;
  11778. }
  11779. .moveBtn {
  11780. display: flex;
  11781. flex-direction: column;
  11782. align-items: flex-end;
  11783. width: 40px;
  11784. }
  11785. </style>