addCourse.vue 357 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485
  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 class="cfirst">
  9. <div>
  10. <img src="../../../assets/icon/first.png" alt />
  11. </div>
  12. <div>填写基本信息</div>
  13. </div>
  14. </div>
  15. <div v-else class="firstNo" @click="navSteps(1)">
  16. <div class="cfirst">
  17. <div>
  18. <img src="../../../assets/icon/firstNo.png" alt />
  19. </div>
  20. <div>填写基本信息</div>
  21. </div>
  22. </div>
  23. <div v-show="cidttt === 0" class="secondNo">
  24. <div v-if="steps == 2" class="newSteps second" @click="navSteps(2)">
  25. <div class="cfirst">
  26. <div>
  27. <img src="../../../assets/icon/second.png" alt />
  28. </div>
  29. <div>选择项目框架</div>
  30. </div>
  31. </div>
  32. <div v-else class="newSteps secondNo" @click="navSteps(2)">
  33. <div class="cfirst">
  34. <div>
  35. <img src="../../../assets/icon/secondNo.png" alt />
  36. </div>
  37. <div>选择项目框架</div>
  38. </div>
  39. </div>
  40. </div>
  41. <div v-if="steps == 3" class="third" @click="navSteps(3)">
  42. <div class="cfirst">
  43. <div>
  44. <img src="../../../assets/icon/third.png" alt />
  45. </div>
  46. <div>上传项目内容</div>
  47. </div>
  48. </div>
  49. <div v-else class="thirdNo" @click="navSteps(3)">
  50. <div class="cfirst">
  51. <div>
  52. <img src="../../../assets/icon/thirdNo.png" alt />
  53. </div>
  54. <div>上传项目内容</div>
  55. </div>
  56. </div>
  57. <div v-if="steps == 4 && type == 2" class="four">
  58. <div class="cfirst">
  59. <div>
  60. <img src="../../../assets/icon/five.png" alt />
  61. </div>
  62. <div>项目进展</div>
  63. </div>
  64. </div>
  65. <div v-else-if="type == 2" class="fourNo" @click="navSteps(4)">
  66. <div class="cfirst">
  67. <div>
  68. <img src="../../../assets/icon/fiveNo.png" alt />
  69. </div>
  70. <div>项目进展</div>
  71. </div>
  72. </div>
  73. <div v-if="steps == 5" class="four">
  74. <div class="cfirst">
  75. <div>
  76. <img src="../../../assets/icon/four.png" alt />
  77. </div>
  78. <div>上传完成</div>
  79. </div>
  80. </div>
  81. <div v-else class="fourNo">
  82. <div class="cfirst">
  83. <div>
  84. <img src="../../../assets/icon/fourNo.png" alt />
  85. </div>
  86. <div>上传完成</div>
  87. </div>
  88. </div>
  89. </div>
  90. <div class="stepsBottom" v-if="steps == 3">
  91. <div class="navTop">辅助导航</div>
  92. <div class="navBottom">
  93. <div class="navTask" :class="{
  94. isNavTask: isClickColor > 0 && isClickColor == tIndex + 1,
  95. }" v-for="(t, tIndex) in unitJson[unitIndex].chapterInfo[0]
  96. .taskJson" :key="tIndex" @click="goToTask(tIndex)">
  97. <div>任务{{ tIndex + 1 }}</div>
  98. <div>
  99. <el-tooltip effect="light" :content="t.task" placement="top">
  100. <span>{{ t.task }}</span>
  101. </el-tooltip>
  102. </div>
  103. <div class="moveBtn" v-if="unitJson[unitIndex].chapterInfo[0].taskJson.length > 1">
  104. <div class="chapter_upload_up" style="width: 15px; height: 15px" @click.stop="taskMove(1, tIndex)">
  105. </div>
  106. <div class="chapter_upload_down" style="width: 15px; height: 15px; margin: 2px 0 0"
  107. @click.stop="taskMove(2, tIndex)"></div>
  108. </div>
  109. </div>
  110. </div>
  111. </div>
  112. </div>
  113. <!-- <div style="display: flex; margin-top: 20px; position: relative"> -->
  114. <div style="width: 100%; height: 100%; overflow: auto" ref="stepBox">
  115. <div class="courseTop">
  116. <div class="stepsNav">
  117. <h3 class="info_title" v-if="steps == 1">项目内容填写</h3>
  118. <h3 class="info_title" v-if="steps == 2">请选择项目框架</h3>
  119. <h3 class="info_title" v-if="steps == 3">项目内容填写</h3>
  120. <h3 class="info_title" v-if="steps == 4">项目管理</h3>
  121. <h3 class="info_title" v-if="steps == 5">上传项目</h3>
  122. <el-breadcrumb separator-class="el-icon-arrow-right" style="margin-top: 15px">
  123. <!-- /studentCourse -->
  124. <el-breadcrumb-item :to="{
  125. path:
  126. fpath +
  127. '?userid=' +
  128. userid +
  129. '&oid=' +
  130. oid +
  131. '&org=' +
  132. org + '&role=' + role,
  133. }">{{
  134. orgArray.indexOf(org) != -1 || oidArray.indexOf(oid) != -1
  135. ? "师生项目"
  136. : "项目管理"
  137. }}
  138. </el-breadcrumb-item>
  139. <el-breadcrumb-item>
  140. <span style="color: rgb(15, 126, 255)">添加项目</span>
  141. </el-breadcrumb-item>
  142. </el-breadcrumb>
  143. </div>
  144. <div v-if="steps == 1 || steps == 2 || steps == 3" class="stepsWord">
  145. {{
  146. steps == 1
  147. ? "第一步"
  148. : steps == 2
  149. ? "第二步"
  150. : steps == 3
  151. ? cidttt === 0
  152. ? "第三步"
  153. : "第二步"
  154. : ""
  155. }}
  156. </div>
  157. </div>
  158. <div class="rightBox" v-if="this.steps == 1" @mousewheel="scrollChange">
  159. <div class="updateMask" :style="{
  160. height: rightBoxHeight ? rightBoxHeight + 'px' : '100%',
  161. }" v-if="cid && userid != courseUserid"></div>
  162. <div class="whiteBg">
  163. <div class="right_title" :class="{ updateTips: cid && userid != courseUserid }">项目基本信息</div>
  164. <div class="basic_box">
  165. <div class="big_box">
  166. <div class="left_first">
  167. <div>
  168. <div>
  169. <div class="bInfo_title" style="margin-bottom: 15px">
  170. <!-- <span style="color: red">*</span> -->
  171. 项目名称
  172. </div>
  173. <div style="display: flex; margin-right: 20px">
  174. <img src="../../../assets/icon/projectName2.png" alt style="margin-right: 8px" />
  175. <input type="text" placeholder="请输入项目名称" class="binfo_input" v-model="courseName" />
  176. </div>
  177. </div>
  178. <div class="both" v-if="CourseType.length">
  179. <div class="choose">
  180. <div class="all_choose" v-for="(item, index) in CourseType[0]" :key="index">
  181. <span v-if="CourseTypeJson[item.id].length > 0">{{
  182. item.name
  183. }}</span>
  184. <el-checkbox-group v-model="courseTypeId" v-if="CourseTypeJson[item.id].length > 0">
  185. <el-checkbox @change="updateType(item1)" v-for="item1 in CourseTypeJson[item.id]"
  186. :key="item1.id" :label="item1.id">{{ item1.name }}
  187. </el-checkbox>
  188. </el-checkbox-group>
  189. <!-- <div v-else style="font-size: 14px; ">
  190. 暂无分类
  191. </div> -->
  192. </div>
  193. </div>
  194. </div>
  195. <div class="subjectBox" v-if="false">
  196. <div class="bInfo_title">添加主题</div>
  197. <div class="subjectList"></div>
  198. <div class="subjectBtn">+ 添加</div>
  199. </div>
  200. </div>
  201. </div>
  202. </div>
  203. </div>
  204. </div>
  205. <div class="whiteBg" style="border-radius: 0">
  206. <div class="right_first">
  207. <div class="right_title">上传封面与成员</div>
  208. <div style="
  209. padding: 0 0 50px 20px;
  210. display: flex;
  211. align-items: baseline;
  212. justify-content: flex-start;
  213. margin: 0 auto;
  214. ">
  215. <div>
  216. <div class="bInfo_title" style="margin-top: 0 !important">
  217. 项目封面
  218. </div>
  219. <div class="uploadFm" @click="choosePicVisible = true" v-if="cover.length == 0">
  220. <img src="../../../assets/icon/addPoster.png" alt="" />
  221. </div>
  222. <el-upload :class="{ disUoloadSty: noneBtnImg }" class="upCss" action="#" list-type="picture"
  223. v-loading="uploadLoading1" :http-request="beforeUpload1" ref="upload1"
  224. :on-preview="handlePictureCardPreview" :on-remove="handle_remove1" :show-file-list="true"
  225. :file-list="cover" accept="image/*" :limit="1" :on-exceed="onExceed" v-else>
  226. <i class="el-icon-plus"></i>
  227. </el-upload>
  228. </div>
  229. <div style="
  230. display: flex;
  231. flex-flow: row nowrap;
  232. flex-direction: row;
  233. flex-wrap: wrap;
  234. align-items: baseline;
  235. margin: 0 30px;
  236. ">
  237. <!-- <div style="margin: 0 80px">
  238. <div class="bInfo_title">
  239. 选择项目成员
  240. </div>
  241. <div
  242. class="addPeople"
  243. @click="addPP"
  244. v-if="this.checkboxList.length == 0"
  245. >添加成员</div>
  246. <div class="addPeople" @click="addPP" v-else>已添加,点击查看</div>
  247. </div>-->
  248. <!-- <div style="margin: 0 30px 0 0">
  249. <div class="bInfo_title">添加班级</div>
  250. <div class="addPeople" @click="dialogVisibleClass = true">
  251. 添加班级
  252. </div>
  253. </div> -->
  254. <div style="flex: 0.5 1 0%; margin: 0; width: 180px"
  255. v-if="courseUserid != '' ? courseUserid == userid : true">
  256. <div class="bInfo_title">协同编辑</div>
  257. <div class="addPeople" @click="openMember" style="background: #0061FF">
  258. 添加协同成员
  259. </div>
  260. <div v-if="checkboxList3.length" style="
  261. max-width: 100%;
  262. word-break: break-all;
  263. overflow: hidden;
  264. margin-top: 10px;
  265. font-size: 14px;
  266. color: #6e6e6e;
  267. cursor:pointer
  268. " @click="checkBoolean = !checkBoolean">
  269. <span :class="{ tcMember: getMan2(tc) }"
  270. v-for="(tc, tcIndex) in checkboxList3.length > 6 && checkBoolean ? checkboxList3 : checkboxList3.slice(0, 6)"
  271. :key="tcIndex">{{ getMan2(tc) }}</span><span class="tcMember"
  272. v-if="checkboxList3.length > 6 && !checkBoolean">更多...</span>
  273. </div>
  274. </div>
  275. </div>
  276. </div>
  277. </div>
  278. </div>
  279. <div class="whiteBg" style="border-radius: 0; margin-top: 15px">
  280. <div class="right_title">项目简要描述</div>
  281. <div style="width: 95%; padding: 15px 0px 15px 20px">
  282. <div style="width: 55%">
  283. <textarea rows="8" class="binfo_input" cols v-model="courseText" :placeholder="'1、项目内容说明' +
  284. '\n' +
  285. '2、项目学习知识目标' +
  286. '\n' +
  287. '3、项目学习技能目标'
  288. "></textarea>
  289. </div>
  290. </div>
  291. <!-- <div style="width: 95%; margin: 15px auto">
  292. <el-switch
  293. v-model="isTeacherSee"
  294. active-text="允许给其他老师查看"
  295. style="padding-bottom: 30px"
  296. ></el-switch>
  297. </div>-->
  298. <div style="width: 95%; padding: 15px 0px 15px 20px">
  299. <el-switch v-model="isTeacherSee" active-text="是否公开此项目" style="padding-bottom: 30px"></el-switch>
  300. </div>
  301. </div>
  302. <div class="whiteBg" style="border-radius: 0; margin-top: 15px; padding-bottom: 20px" v-if="false">
  303. <div class="right_title">目标管理</div>
  304. <div style="margin: 15px auto; padding: 0 0 0 20px">
  305. <div style="
  306. width: 100%;
  307. display: flex;
  308. flex-direction: row;
  309. flex-wrap: nowrap;
  310. align-content: center;
  311. align-items: center;
  312. justify-content: space-between;
  313. ">
  314. <div style="
  315. display: flex;
  316. flex-flow: row nowrap;
  317. align-items: flex-start;
  318. width: 100%;
  319. flex-direction: column;
  320. flex-wrap: nowrap;
  321. position: relative;
  322. ">
  323. <!-- <div style="margin-right: 15px; min-width: 120px">
  324. 请选择评价指标
  325. </div>
  326. <div>
  327. <el-select
  328. v-model="evalua"
  329. placeholder="请选择体系"
  330. @change="checkEva"
  331. >
  332. <el-option
  333. v-for="(e, eIndex) in evaJuri"
  334. :key="eIndex"
  335. :label="e.title"
  336. :value="e.id"
  337. ></el-option>
  338. </el-select>
  339. </div> -->
  340. <!-- <div
  341. @click="openT"
  342. class="addPeople"
  343. style="
  344. background: #6b92c9;
  345. margin: 0 0 0 15px;
  346. position: absolute;
  347. right: 23%;
  348. "
  349. >
  350. 前往设置目标管理
  351. </div> -->
  352. <div class="e_box">
  353. <div class="e_card" v-for="(item, index) in evaJuri" :key="index">
  354. <div class="e_card_picture">
  355. <img src="../../../assets/e_picture.png" />
  356. </div>
  357. <div class="e_card_name">
  358. <span>{{ item.title }}</span>
  359. </div>
  360. <!-- <div class="e_card_time">
  361. <span>{{ item.time }}</span>
  362. </div> -->
  363. <div class="e_card_btn">
  364. <span @click="checkEva(item.id)">导入</span>
  365. <!-- <span @click="openT">前往设置</span> -->
  366. </div>
  367. </div>
  368. <div class="addEva" @click="openT">
  369. <img src="../../../assets/icon/addEva.png" alt="" />
  370. </div>
  371. <div v-if="evaJuri.length === 0" style="margin: 0 auto; color: #6e6e6e">
  372. 暂无数据
  373. </div>
  374. </div>
  375. </div>
  376. </div>
  377. <div v-if="evalua" style="
  378. border: 1px solid #e5e5e5;
  379. width: 95%;
  380. margin-top: 30px;
  381. box-shadow: 3px 1px 15px 3px #e0e0e0;
  382. ">
  383. <div class="e_add_top">
  384. <div class="e_add_title">
  385. <span>当前使用目标管理</span>
  386. <span>{{ eTitle }}</span>
  387. <img src="../../../assets/line.png" class="cru_line" style="
  388. width: 125px;
  389. height: 20px;
  390. bottom: -10px;
  391. left: 155px;
  392. " />
  393. <!-- <el-input
  394. v-model="eTitle"
  395. placeholder="请输入名称"
  396. @change="setMindData"
  397. ></el-input>-->
  398. </div>
  399. </div>
  400. <div class="e_add_content">
  401. <div class="e_add_list_pbox">
  402. <div class="e_add_list_pbox_title">
  403. <span class="type_title">切换模式</span>
  404. <div class="type_content">
  405. <span :class="{ active: typeMode == 1 }" @click="OtherMb(1)">目标树</span>
  406. <span :class="{ active: typeMode == 2 }" @click="OtherMb(2)">目标罗盘</span>
  407. <span :class="{ active: typeMode == 3 }" @click="OtherMb(3)">目标看板</span>
  408. </div>
  409. </div>
  410. <div class="e_add_list_pbox_content">
  411. <Mind :showBar="false" :mindData="data" v-show="typeMode == 1"></Mind>
  412. <Sunburst :Josn="eJson" :num="eJSONNum" style="width: 100%" v-if="typeMode == 2"></Sunburst>
  413. <SeeBoard :Josn="eJson" :num="eJSONNum" :ename="eTitle" style="width: 100%" v-if="typeMode == 3">
  414. </SeeBoard>
  415. </div>
  416. </div>
  417. </div>
  418. </div>
  419. </div>
  420. </div>
  421. </div>
  422. <div class="rightBox" v-if="this.steps == 2">
  423. <div class="basic_box" style="padding: 20px 30px 0px !important; box-sizing: border-box">
  424. <!-- <div
  425. style="
  426. color: #b8b8b8;
  427. background: #fff;
  428. width: 26%;
  429. height: 40px;
  430. border-radius: 15px;
  431. padding-left: 20px;
  432. line-height: 40px;
  433. font-size: 17px;
  434. box-shadow: 0px 1px 2px 2px #e0e0e0;
  435. "
  436. >-->
  437. <div class="right_title" style="border: none; margin: 0; padding: 0">
  438. 请选择合适的项目模板
  439. </div>
  440. <div class="wordbox">
  441. <div class="wordTeacher" v-for="(aa, indexF) in templateArray" :key="indexF" @click="checkTemplate(aa)">
  442. <div class="wordPic">
  443. <img src="../../../assets/icon/wordMub.png" alt />
  444. </div>
  445. <div style="
  446. margin-top: 10px;
  447. line-height: 19px;
  448. overflow: hidden;
  449. text-overflow: ellipsis;
  450. white-space: nowrap;
  451. padding: 0 20px;
  452. ">
  453. {{ aa.title }}
  454. </div>
  455. </div>
  456. <div class="wordTeacher" @click="checkTemplate2()">
  457. <div class="wordPic">
  458. <img src="../../../assets/icon/wordMub.png" alt />
  459. </div>
  460. <div style="
  461. margin-top: 10px;
  462. line-height: 19px;
  463. overflow: hidden;
  464. text-overflow: ellipsis;
  465. white-space: nowrap;
  466. padding: 0 20px;
  467. ">
  468. 新建项目
  469. </div>
  470. </div>
  471. <!-- <div class="wordTeacher" @click="checkTemplate1()">
  472. <div class="wordPic">
  473. <img src="../../../assets/icon/wordMub.png" alt />
  474. </div>
  475. <div style="
  476. margin-top: 10px;
  477. line-height: 19px;
  478. overflow: hidden;
  479. text-overflow: ellipsis;
  480. white-space: nowrap;
  481. padding: 0 20px;
  482. ">
  483. 我的项目
  484. </div>
  485. </div> -->
  486. </div>
  487. </div>
  488. </div>
  489. <div class="rightBox" v-if="this.steps == 3" ref="rightboxR">
  490. <div class="basic_box">
  491. <div style="
  492. display: flex;
  493. flex-direction: row;
  494. align-items: center;
  495. position: sticky;
  496. top: 0;
  497. background: #fff;
  498. z-index: 99;
  499. width: 100%;
  500. padding: 0 20px 0 20px;
  501. box-sizing: border-box;
  502. ">
  503. <div class="cru_selectBox">
  504. <div v-for="(item, index) in unitJson" :key="index" class="cru_select"
  505. :class="unitIndex == index ? 'cru_selected' : ''" @click="unitSet(index)">
  506. 第{{ index + 1 }}阶段
  507. </div>
  508. <div class="cru_line" :style="{
  509. left: offsetLetfPx + 'px',
  510. }" ></div>
  511. </div>
  512. <div class="addStageImg" @click="addunit()">
  513. <img src="../../../assets/icon/add.png" alt />
  514. </div>
  515. </div>
  516. <div style="margin: 0 0 40px 0; padding: 0 20px 0 20px"
  517. v-for="(item, index) in unitJson[unitIndex].chapterInfo" :key="index">
  518. <div>
  519. <div class="chapter_contentbox">
  520. <div>第{{ unitIndex + 1 }}阶段</div>
  521. <div>
  522. <input type="text" placeholder="阶段标题" class="binfo_input" v-model="unitJson[unitIndex].dyName" />
  523. </div>
  524. <div v-if="unitJson.length > 1" @click="deleteUnit(unitIndex)"></div>
  525. </div>
  526. </div>
  527. <div class="task_add_title">添加任务</div>
  528. <div class="taskBorder" v-for="(itemTask, itemTaskIndex) in item.taskJson" :key="itemTaskIndex">
  529. <div>
  530. <div>
  531. <div style="font-size: 22px; color: #8e8e8e" :id="'task' + itemTaskIndex">
  532. 任务{{ itemTaskIndex + 1 }}
  533. </div>
  534. <div class="chapter_contentbox" style="
  535. flex-direction: row;
  536. justify-content: flex-start;
  537. align-items: center;
  538. flex-wrap: wrap;
  539. ">
  540. <div style="
  541. flex-direction: row;
  542. justify-content: flex-start;
  543. align-items: center;
  544. flex-wrap: wrap;
  545. display: flex;
  546. width: calc(100% - 115px);
  547. ">
  548. <div style="
  549. flex-direction: row;
  550. justify-content: flex-start;
  551. align-items: center;
  552. display: flex;
  553. margin-bottom: 10px;
  554. ">
  555. <div style="
  556. border-left: 6px solid #0061FF;
  557. height: 20px;
  558. padding: 0 10px;
  559. line-height: 22px;
  560. ">
  561. 任务名称
  562. </div>
  563. <div style="width: auto">
  564. <input type="text" placeholder="输入任务名称" class="binfo_input" style="border-radius: 4px"
  565. v-model="unitJson[unitIndex].chapterInfo[0].taskJson[
  566. itemTaskIndex
  567. ].task
  568. " />
  569. </div>
  570. </div>
  571. <div style="
  572. flex-direction: row;
  573. justify-content: flex-start;
  574. align-items: center;
  575. display: flex;
  576. margin-bottom: 10px;
  577. ">
  578. <div style="
  579. height: 20px;
  580. padding: 0 10px 0 16px;
  581. line-height: 22px;
  582. ">
  583. 负责人
  584. </div>
  585. <div style="width: auto">
  586. <!-- <input type="text" placeholder="输入负责人" class="binfo_input" style="border-radius: 4px"
  587. v-model="
  588. unitJson[unitIndex].chapterInfo[0].taskJson[
  589. itemTaskIndex
  590. ].people
  591. " /> -->
  592. <el-select v-model="unitJson[unitIndex].chapterInfo[0].taskJson[
  593. itemTaskIndex
  594. ].people
  595. " placeholder="请选择负责人" clearable filterable @change="
  596. peopleChange(
  597. unitJson[unitIndex].chapterInfo[0].taskJson[
  598. itemTaskIndex
  599. ].people,
  600. itemTaskIndex
  601. )
  602. ">
  603. <el-option v-for="item in ManAarray" :key="item.userid" :label="item.name +
  604. (item.type == 1 ? '(老师)' : '(学生)')
  605. " :value="item.userid">
  606. </el-option>
  607. </el-select>
  608. </div>
  609. </div>
  610. <!-- <div class="addPeople" @click="addTcMember(itemTaskIndex)"
  611. style="background: rgb(107, 146, 201);margin: 0 0 10px 15px;margin-bottom: 10px;width: 100px;">
  612. {{
  613. (unitJson[unitIndex].chapterInfo[0].taskJson[itemTaskIndex].tcMember
  614. &&
  615. unitJson[unitIndex].chapterInfo[0].taskJson[itemTaskIndex].tcMember.length)
  616. ? '已添加' : '添加协同者'
  617. }}
  618. </div> -->
  619. </div>
  620. <div class="remove" v-if="item.taskJson.length > 1" @click="deleteTask(itemTaskIndex)"
  621. style="position: absolute; right: 55px"></div>
  622. </div>
  623. <div style="
  624. flex-direction: row;
  625. justify-content: flex-start;
  626. align-items: center;
  627. display: flex;
  628. margin: 10px 0 15px;
  629. ">
  630. <div style="
  631. height: 20px;
  632. padding-left: 16px;
  633. line-height: 22px;
  634. font-size: 18px;
  635. ">
  636. 协同人员
  637. </div>
  638. <el-tooltip :content="getMen(
  639. unitJson[unitIndex].chapterInfo[0].taskJson[
  640. itemTaskIndex
  641. ].tcMember
  642. )
  643. " placement="top" effect="dark" v-if="unitJson[unitIndex].chapterInfo[0].taskJson[
  644. itemTaskIndex
  645. ].tcMember &&
  646. unitJson[unitIndex].chapterInfo[0].taskJson[
  647. itemTaskIndex
  648. ].tcMember.length
  649. ">
  650. <div class="tcMember_box" @click="addTcMember(itemTaskIndex)">
  651. <span :class="{ tcMember: getMan(tc) }" v-for="(tc, tcIndex) in unitJson[unitIndex]
  652. .chapterInfo[0].taskJson[itemTaskIndex]
  653. .tcMember" :key="tcIndex">{{ getMan(tc) }}</span>
  654. </div>
  655. </el-tooltip>
  656. <div class="tcMember_box" @click="addTcMember(itemTaskIndex)" v-else>
  657. <span>点击添加协同成员</span>
  658. </div>
  659. </div>
  660. <div style="
  661. flex-direction: row;
  662. justify-content: flex-start;
  663. align-items: center;
  664. display: flex;
  665. margin-top: 10px;
  666. ">
  667. <div style="
  668. height: 20px;
  669. padding-left: 16px;
  670. line-height: 22px;
  671. ">
  672. 任务起止时间
  673. </div>
  674. <div style="margin-left: 20px">
  675. <el-date-picker v-model="unitJson[unitIndex].chapterInfo[0].taskJson[
  676. itemTaskIndex
  677. ].time
  678. " type="datetimerange" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期">
  679. </el-date-picker>
  680. </div>
  681. </div>
  682. <div style="
  683. display: flex;
  684. margin: 0 0 20px 0;
  685. flex-direction: row;
  686. justify-content: flex-start;
  687. align-items: center;
  688. width: 70.5% !important;
  689. ">
  690. <div class="lineTitle">任务描述</div>
  691. <div class="line"></div>
  692. </div>
  693. <div>
  694. <editor-bar style="
  695. width: 90% !important;
  696. margin: 0;
  697. height: 500px;
  698. " class="ed_s" placeholder="请输入任务描述" v-model="unitJson[unitIndex].chapterInfo[0].taskJson[
  699. itemTaskIndex
  700. ].taskDetail
  701. " @change="change"></editor-bar>
  702. </div>
  703. </div>
  704. </div>
  705. <div class="basic_box" v-if="false" style="
  706. margin: 0;
  707. min-height: 0;
  708. width: 90% !important;
  709. paddint-top: 10px !important;
  710. ">
  711. <div style="
  712. display: flex;
  713. margin: 0 0 20px 0;
  714. flex-direction: row;
  715. justify-content: flex-start;
  716. align-items: center;
  717. ">
  718. <div class="lineTitle">资源库</div>
  719. <div class="line"></div>
  720. </div>
  721. <div>
  722. <div class="add_chapters_box" v-if="itemTask.chapterData &&
  723. itemTask.chapterData.length == 0
  724. " style="height: 185px"></div>
  725. <div v-else class="add_chapters_box" style="display: flex; flex-direction: column">
  726. <div class="chapter_upload" v-for="(item1, index1) in itemTask.chapterData" :key="item1.id"
  727. @click="
  728. getChapterData(
  729. $event,
  730. unitIndex,
  731. index,
  732. index1,
  733. item1.type
  734. )
  735. ">
  736. <div class="chapter_upload_t" style="width: 100%"></div>
  737. <div class="chapter_upload_o" style="
  738. position: relative;
  739. display: flex;
  740. align-items: center;
  741. ">
  742. <div class="chapter_upload_l" style="padding: 1px 0 0 10px">
  743. <div v-if="item1.type == 2" class="chapter_upload_l_i1"></div>
  744. <div v-if="item1.type == 3 ||
  745. item1.type == 9 ||
  746. item1.type == 6 ||
  747. item1.type == 7
  748. " class="chapter_upload_l_i5" style="margin-left: 1px"></div>
  749. <div v-if="item1.type == 8" class="chapter_upload_l_i8" style="margin-left: 1px"></div>
  750. </div>
  751. <div class="chapter_upload_ic" style="
  752. cursor: pointer;
  753. position: absolute;
  754. width: 45px;
  755. right: 0;
  756. top: 0;
  757. ">
  758. <div class="chapter_upload_ic_l"></div>
  759. <div class="chapter_upload_ic_r" style="position: absolute" @click.stop="
  760. deleteChapterData(
  761. $event,
  762. unitIndex,
  763. index,
  764. index1,
  765. itemTaskIndex
  766. )
  767. ">
  768. <div></div>
  769. </div>
  770. </div>
  771. <div class="chapter_upload_n">
  772. <input v-if="item1.type == 2 ||
  773. item1.type == 3 ||
  774. item1.type == 9 ||
  775. item1.type == 7
  776. " :placeholder="item1.name" @change="
  777. updataVideoT(
  778. $event,
  779. unitIndex,
  780. chapterIndex,
  781. index1
  782. )
  783. " style="
  784. border: none;
  785. outline: none;
  786. width: 80%;
  787. minwidth: 215px;
  788. z-index: 99;
  789. font-size: 14px;
  790. white-space: nowrap;
  791. overflow: hidden;
  792. text-overflow: ellipsis;
  793. " />
  794. <input :placeholder="item1.name" v-if="item1.type == 6" style="
  795. border: none;
  796. outline: none;
  797. width: 80%;
  798. white-space: nowrap;
  799. overflow: hidden;
  800. text-overflow: ellipsis;
  801. " readonly="true" @click="selectAttText(itemTaskIndex, index1)" />
  802. <input :placeholder="item1.title ? item1.title : '链接'
  803. " v-if="item1.type == 8" style="
  804. border: none;
  805. outline: none;
  806. width: 80%;
  807. white-space: nowrap;
  808. overflow: hidden;
  809. text-overflow: ellipsis;
  810. " readonly="true" @click="selectLine(itemTaskIndex, index1)" />
  811. <div class="chapter_upload_ud" style="z-index: 99">
  812. <div class="chapter_upload_up" @click="
  813. upCd($event, unitIndex, index, index1)
  814. "></div>
  815. <div class="chapter_upload_down" @click="
  816. downCd($event, unitIndex, index, index1)
  817. "></div>
  818. </div>
  819. </div>
  820. </div>
  821. </div>
  822. </div>
  823. </div>
  824. <div class="add_info_box">
  825. <button class="info_btn" @click="addImg($event)">
  826. 添加视频
  827. <!-- capture="camera" -->
  828. <input type="file" accept="video/mp4, video/quicktime, video/x-msvideo" style="display: none"
  829. v-if="inputShow" @change="
  830. beforeUpload2($event, unitIndex, 2, itemTaskIndex)
  831. " />
  832. </button>
  833. <button class="info_btn" @click="addImg($event)">
  834. 添加附件
  835. <input type="file"
  836. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  837. style="display: none" v-if="inputShow" @change="
  838. beforeUpload2($event, unitIndex, 3, itemTaskIndex)
  839. " />
  840. </button>
  841. <button class="info_btn" @click="addAttText(itemTaskIndex)">
  842. 添加图文
  843. </button>
  844. <button class="info_btn" @click="openLine(itemTaskIndex)">
  845. 添加链接
  846. </button>
  847. </div>
  848. <div v-if="unitJson[unitIndex].chapterInfo[0].taskJson[
  849. itemTaskIndex
  850. ].proVisible
  851. " class="mask">
  852. <div class="progressBox">
  853. <div class="lbox">
  854. <img src="../../../assets/loading.gif" />上传中,请稍后
  855. </div>
  856. <el-progress :text-inside="true" :stroke-width="20" :percentage="unitJson[unitIndex].chapterInfo[0].taskJson[
  857. itemTaskIndex
  858. ].progress
  859. ? unitJson[unitIndex].chapterInfo[0].taskJson[
  860. itemTaskIndex
  861. ].progress
  862. : 0
  863. " style="width: 80%"></el-progress>
  864. </div>
  865. </div>
  866. </div>
  867. <div class="toolChoose" style="padding: 0 0 30px 30px">
  868. <div class="tools" style="margin-top: 20px">
  869. <div class="leftTools" style="
  870. width: 95%;
  871. padding: 0 0 15px 0;
  872. border-bottom: 1px solid #efefef;
  873. margin-bottom: 15px;
  874. " v-for="(itemTool, toolIndex) in itemTask.toolArray" :key="toolIndex">
  875. <div style="
  876. display: flex;
  877. flex-direction: row;
  878. align-items: center;
  879. flex-wrap: nowrap;
  880. justify-content: flex-start;
  881. position: relative;
  882. ">
  883. <div style="margin-right: 20px; font-weight: bold">
  884. 步骤 {{ toolIndex + 1 }} :
  885. </div>
  886. <div class="chooseWho" style="padding-bottom: 0">
  887. <span v-if="itemTool.tool == 1"> 电子白板 </span>
  888. <span v-if="itemTool.tool == 3"> 思维导图 </span>
  889. <span v-if="itemTool.tool == 6"> 协同文档 </span>
  890. <span v-if="itemTool.tool == 15"> 问答 </span>
  891. <span v-if="itemTool.tool == 48"> 表格 </span>
  892. <span v-if="itemTool.tool == 51"> 资源库 </span>
  893. <span v-if="itemTool.tool == 52"> 文档 </span>
  894. <span v-if="itemTool.tool == 53"> 文件上传 </span>
  895. <span v-if="itemTool.tool == 54"> 拍照 </span>
  896. <span v-if="itemTool.tool == 55"> 文件 </span>
  897. <span v-if="itemTool.tool == 56"> 投票 </span>
  898. <span v-if="itemTool.tool == 57"> CocoPi </span>
  899. </div>
  900. <div class="remove" @click="deleteTool(itemTaskIndex, toolIndex)"
  901. v-if="itemTask.toolArray.length > 0" style="position: absolute; right: 55px"></div>
  902. </div>
  903. <div style="margin: 10px 0;align-items: center;" :style="{display: (itemTool.tool == 57 || itemTool.tool == 51) ? 'block' : 'flex'}">
  904. <div>
  905. <div class="tool" v-if="itemTool.tool == 1">
  906. <div class="whiteBIcon" @click="openToolFun(1, itemTaskIndex, toolIndex)">
  907. <img src="../../../assets/icon/secondToolList/whiteBoard.png" alt />
  908. <div style="margin: 5px 0">电子白板</div>
  909. </div>
  910. </div>
  911. <div class="tool" v-if="itemTool.tool == 3">
  912. <div class="whiteBIcon" @click="openToolFun(3, itemTaskIndex, toolIndex)">
  913. <img src="../../../assets/icon/secondToolList/mindMapping.png" alt />
  914. <div style="margin: 5px 0">思维导图</div>
  915. </div>
  916. </div>
  917. <div class="tool" v-if="itemTool.tool == 6">
  918. <div class="whiteBIcon" @click="openToolFun(6, itemTaskIndex, toolIndex)">
  919. <img src="../../../assets/icon/secondToolList/doc.png" alt />
  920. <div style="margin: 5px 0">协同文档</div>
  921. </div>
  922. </div>
  923. <div class="tool" v-if="itemTool.tool == 15">
  924. <div class="whiteBIcon" @click="openToolFun(15, itemTaskIndex, toolIndex)">
  925. <img src="../../../assets/icon/thirdToolList/answer.png" alt />
  926. <div style="margin: 5px 0">问答</div>
  927. </div>
  928. </div>
  929. <div class="tool" v-if="itemTool.tool == 48 && !itemTool.toolPhoto.length
  930. ">
  931. <div class="whiteBIcon" @click="openToolFun(48, itemTaskIndex, toolIndex)">
  932. <img src="../../../assets/icon/fourthToolList/table.png" alt />
  933. <div style="margin: 5px 0">表格</div>
  934. </div>
  935. </div>
  936. <div class="tool" v-if="itemTool.tool == 52 && !itemTool.toolPhoto.length
  937. " style="position: relative">
  938. <div class="whiteBIcon" @click="openToolFun(52, itemTaskIndex, toolIndex)">
  939. <img src="../../../assets/icon/fourthToolList/text.png" alt />
  940. <div style="margin: 5px 0">文档</div>
  941. </div>
  942. </div>
  943. <div class="tool" v-if="itemTool.tool == 53" style="position: relative">
  944. <div class="whiteBIcon" :id="itemTaskIndex + '-' + toolIndex" @click="addImg($event)">
  945. <img src="../../../assets/icon/fourthToolList/file.png" alt />
  946. <div style="margin: 5px 0">文件上传</div>
  947. <input type="file"
  948. accept="application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document,application/zip"
  949. style="display: none" @change="
  950. beforeUploadCC(
  951. $event,
  952. 1,
  953. itemTaskIndex,
  954. toolIndex,
  955. 53
  956. )
  957. " />
  958. <div v-if="itemTool.proVisible" class="mask">
  959. <div class="lbox2">
  960. <img src="../../../assets/loading.gif" />
  961. </div>
  962. </div>
  963. </div>
  964. </div>
  965. <div class="tool" v-if="itemTool.tool == 54" style="
  966. display: flex;
  967. flex-direction: row;
  968. align-items: flex-end;
  969. ">
  970. <div class="whiteBIcon" :id="itemTaskIndex + '-' + toolIndex" @click="addImg($event)"
  971. style="position: relative">
  972. <img src="../../../assets/icon/fourthToolList/photo.png" alt />
  973. <div style="margin: 5px 0">拍照</div>
  974. <!-- capture="camera" -->
  975. <input type="file" accept="video/mp4, video/quicktime, video/x-msvideo,image/*"
  976. style="display: none" @change="
  977. beforeUploadCC(
  978. $event,
  979. 2,
  980. itemTaskIndex,
  981. toolIndex,
  982. 54
  983. )
  984. " />
  985. <div v-if="itemTool.proVisible" class="mask" style="background: unset" @click.stop="1">
  986. <div class="lbox2"></div>
  987. </div>
  988. </div>
  989. <div v-if="itemTool.proVisible" style="margin: 5px 0" class="f_size_box">
  990. <img src="../../../assets/loading.gif" />
  991. <div>
  992. <span>{{ itemTool.isFinishSize }}M</span> /
  993. <span>{{ itemTool.isAllSize }}M</span>
  994. </div>
  995. <!-- <el-button type="text">取消</el-button> -->
  996. </div>
  997. </div>
  998. <div class="tool" v-if="itemTool.tool == 55" style="
  999. display: flex;
  1000. flex-direction: row;
  1001. align-items: flex-end;
  1002. ">
  1003. <div class="whiteBIcon" :id="itemTaskIndex + '-' + toolIndex" @click="addImg($event)"
  1004. style="position: relative">
  1005. <img src="../../../assets/icon/fourthToolList/zip.png" alt />
  1006. <div style="margin: 5px 0">文件</div>
  1007. <input type="file" accept="*" style="display: none" @change="
  1008. beforeUploadCC(
  1009. $event,
  1010. 3,
  1011. itemTaskIndex,
  1012. toolIndex,
  1013. 55
  1014. )
  1015. " />
  1016. <div v-if="itemTool.proVisible" class="mask" style="background: unset" @click.stop="1">
  1017. <div class="lbox2"></div>
  1018. </div>
  1019. </div>
  1020. <div v-if="itemTool.proVisible" style="margin: 5px 0" class="f_size_box">
  1021. <img src="../../../assets/loading.gif" />
  1022. <div>
  1023. <span>{{ itemTool.isFinishSize }}M</span> /
  1024. <span>{{ itemTool.isAllSize }}M</span>
  1025. </div>
  1026. <!-- <el-button type="text">取消</el-button> -->
  1027. </div>
  1028. </div>
  1029. <div class="tool" v-if="itemTool.tool == 56">
  1030. <div class="whiteBIcon" @click="openToolFun(56, itemTaskIndex, toolIndex)">
  1031. <img src="../../../assets/icon/thirdToolList/ask.png" alt />
  1032. <div style="margin: 5px 0">投票</div>
  1033. </div>
  1034. </div>
  1035. <div v-if="itemTool.tool == 57">
  1036. <div>
  1037. <iframe src="https://v.cocorobo.cn" frameborder="0" width="100%" height="650"></iframe>
  1038. </div>
  1039. </div>
  1040. <div v-if="itemTool.tool == 51">
  1041. <div class="vedioTaskBox">
  1042. <div class="box_course" :class="'box_course' + itemTaskIndex + toolIndex
  1043. " v-if="itemTool.toolData.length > 0 && !itemTool.isNoFile">
  1044. <div class="wheel" v-if="itemTool.toolData[itemTool.sourceIndex]
  1045. .type == 2
  1046. ">
  1047. <div class="workd_media" style="height: 100%">
  1048. <video-player class="video-player vjs-custom-skin" :playsinline="true" :options="itemTool.toolData[itemTool.sourceIndex]
  1049. .src
  1050. " @play="onPlayerPlay($event)" style="width: 99%; height: 100%"></video-player>
  1051. </div>
  1052. </div>
  1053. <div class="wheel" v-if="itemTool.toolData[itemTool.sourceIndex]
  1054. .type == 6
  1055. " style="
  1056. box-shadow: 0 0 6px 1px #f2f2f2;
  1057. width: 99%;
  1058. background: #f1f1f1;
  1059. height: 650px;
  1060. ">
  1061. <div class="texttitle">查看文档</div>
  1062. <el-form class="textBox">
  1063. <el-form-item class="textTitle">
  1064. <div style="
  1065. font-size: 22px;
  1066. max-height: 100px;
  1067. overflow: auto;
  1068. ">
  1069. {{
  1070. itemTool.toolData[
  1071. itemTool.sourceIndex
  1072. ].name
  1073. }}
  1074. </div>
  1075. </el-form-item>
  1076. <div v-html="itemTool.toolData[itemTool.sourceIndex]
  1077. .url
  1078. " class="textContent"></div>
  1079. </el-form>
  1080. </div>
  1081. <div class="wheel" v-if="itemTool.toolData[itemTool.sourceIndex]
  1082. .type == 3
  1083. " style="height: 650px; width: 99%">
  1084. <iframe style="
  1085. width: 100%;
  1086. height: 100%;
  1087. border: none;
  1088. " :src="itemTool.toolData[itemTool.sourceIndex]
  1089. .src
  1090. "></iframe>
  1091. </div>
  1092. <div class="wheel" v-if="itemTool.toolData[itemTool.sourceIndex]
  1093. .type == 8
  1094. " style="height: 650px; width: 99%">
  1095. <iframe style="
  1096. width: 100%;
  1097. height: 100%;
  1098. border: none;
  1099. " :src="itemTool.toolData[itemTool.sourceIndex]
  1100. .src
  1101. " security="restricted"
  1102. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts"></iframe>
  1103. </div>
  1104. <div class="wheel" v-if="itemTool.toolData[itemTool.sourceIndex]
  1105. .type == 13
  1106. " style="height: 650px; width: 99%">
  1107. <el-image :src="itemTool.toolData[itemTool.sourceIndex].url" fit="contain"
  1108. style="width: 100%; height: 100%; cursor: pointer"
  1109. @click="previewImg(itemTool.toolData[itemTool.sourceIndex].url)"></el-image>
  1110. </div>
  1111. <div class="wheel" v-if="itemTool.toolData[itemTool.sourceIndex]
  1112. .type == 9
  1113. " style="height: 650px; width: 99%">
  1114. <pdf :pdfUrl="itemTool.toolData[itemTool.sourceIndex]
  1115. .url
  1116. " style="
  1117. width: 100%;
  1118. height: 100%;
  1119. overflow: auto;
  1120. ">
  1121. </pdf>
  1122. </div>
  1123. </div>
  1124. <div class="vedioList" :class="'vedioList' + itemTaskIndex + toolIndex"
  1125. v-if="itemTool.toolData.length > 0">
  1126. <div class="navTitile">内容列表:</div>
  1127. <div class="navBox">
  1128. <div>
  1129. <div class="vedioTimeBox" v-for="(
  1130. chapter, cIndex
  1131. ) in itemTool.toolData" :key="cIndex + '1'"
  1132. @click="setChapterIndex(itemTool, cIndex)">
  1133. <div class="vedioName" :class="{
  1134. isClickNav:
  1135. itemTool.sourceIndex == cIndex,
  1136. }">
  1137. {{
  1138. chapter.type == 8
  1139. ? chapter.title
  1140. : chapter.name
  1141. }}
  1142. </div>
  1143. </div>
  1144. </div>
  1145. </div>
  1146. </div>
  1147. </div>
  1148. <div style="padding: 10px 0 0" v-if="itemTool.toolData[itemTool.sourceIndex]">
  1149. <el-button v-if="itemTool.toolData[itemTool.sourceIndex]
  1150. .type == 3 ||
  1151. itemTool.toolData[itemTool.sourceIndex]
  1152. .type == 9
  1153. " type="primary" @click="
  1154. checkFileFull(
  1155. itemTool.toolData[itemTool.sourceIndex]
  1156. .type,
  1157. itemTool.toolData[itemTool.sourceIndex].src
  1158. )
  1159. ">全屏查看</el-button>
  1160. <el-button v-if="itemTool.toolData[itemTool.sourceIndex]
  1161. .type == 3 ||
  1162. itemTool.toolData[itemTool.sourceIndex]
  1163. .type == 9
  1164. " type="primary" @click="
  1165. downloadFile(
  1166. itemTool.toolData[itemTool.sourceIndex].src
  1167. )
  1168. ">文件下载</el-button>
  1169. <el-button v-if="itemTool.toolData[itemTool.sourceIndex]
  1170. .type == 8
  1171. " type="primary" @click="
  1172. openLineS(
  1173. itemTool.toolData[itemTool.sourceIndex].src
  1174. )
  1175. ">打开链接
  1176. </el-button>
  1177. <el-button v-if="itemTool.toolData[itemTool.sourceIndex]
  1178. .type == 6
  1179. " type="primary" @click="
  1180. checkFileFull(
  1181. itemTool.toolData[itemTool.sourceIndex]
  1182. .type,
  1183. itemTool.toolData[itemTool.sourceIndex]
  1184. )
  1185. ">全屏查看</el-button>
  1186. <el-button type="primary" @click="
  1187. editSourceUpadte(itemTaskIndex, toolIndex)
  1188. ">添加资源</el-button>
  1189. </div>
  1190. </div>
  1191. </div>
  1192. <div v-if="itemTool.tool != 51" style="width: 71.5%;"
  1193. :style="{ marginLeft: ((itemTool.tool == 52 || itemTool.tool == 48) && itemTool.toolPhoto.length) ? '0' : '10px' }">
  1194. <textarea rows="3" type="text" placeholder="添加工具描述" class="binfo_input" style="
  1195. resize: none;
  1196. width: 100% !important;
  1197. " v-model="itemTool.toolDetail"></textarea>
  1198. </div>
  1199. </div>
  1200. <div v-if="itemTool.toolPhoto.length" style="margin-top: 10px" class="toolimg_box">
  1201. <div class="toolimg" v-for="(photo, pIndex) in itemTool.toolPhoto" :key="pIndex"
  1202. :class="{ answerWidth: photo.type == 3 }">
  1203. <img v-if="photo.type == 1" :src="photo.content" alt="" @click="previewImg(photo.content)" />
  1204. <div class="answerBg" v-if="photo.type == 3">
  1205. <!-- <div>{{ w.sName }}</div> -->
  1206. <el-tooltip class="item" effect="light" :content="photo.content" placement="top">
  1207. <div class="answerContent">
  1208. {{ photo.content }}
  1209. </div>
  1210. </el-tooltip>
  1211. </div>
  1212. <img v-if="photo.type == 10" src="../../../assets/icon/word2.png" alt=""
  1213. @click="openToolFun(48, itemTaskIndex, toolIndex)" />
  1214. <img v-if="photo.type == 4" src="../../../assets/icon/word2.png" alt=""
  1215. @click="openFile(photo.content)" />
  1216. <img v-if="photo.type == 12" src="../../../assets/icon/word2.png" alt=""
  1217. @click="openToolFun(52, itemTaskIndex, toolIndex)" />
  1218. <img v-if="photo.type == 14" src="../../../assets/icon/word2.png" alt="" @click="
  1219. openAsk(photo.content, itemTaskIndex, toolIndex)
  1220. " />
  1221. <img v-if="photo.type == 13" src="../../../assets/icon/zip.png" alt=""
  1222. @click="downloadFile(photo.content)" />
  1223. <img v-if="photo.type == 5" src="../../../assets/icon/isVideo.png" alt=""
  1224. @click="openVideo(photo.content)" />
  1225. <img class="deleteImg" src="../../../assets/deleteworks.png" v-if="photo.userid == userid &&
  1226. itemTool.tool != 52 &&
  1227. itemTool.tool != 48
  1228. " @click.stop="deleteWorks(photo.id)" alt />
  1229. <div class="comment">
  1230. <div class="worksName">
  1231. <div v-if="itemTool.tool == 52 || itemTool.tool == 48
  1232. ">
  1233. <el-tooltip v-if="itemTool.people.length > 1" :content="itemTool.people.join('、')"
  1234. placement="top" effect="dark">
  1235. <span>{{
  1236. itemTool.people.join("、")
  1237. }}</span>
  1238. </el-tooltip>
  1239. <span v-else>{{
  1240. itemTool.people.join("、")
  1241. }}</span>
  1242. </div>
  1243. <div v-else>{{ photo.username }}</div>
  1244. <div @click="openUpdateName(photo)">
  1245. <el-tooltip :content="photo.name ? photo.name : setTime(photo.create_at)"
  1246. placement="top" effect="dark">
  1247. <span>{{
  1248. photo.name ? photo.name : setTime(photo.create_at)
  1249. }}</span>
  1250. </el-tooltip>
  1251. <img src="../../../assets/icon/edit-icon.png" />
  1252. </div>
  1253. </div>
  1254. </div>
  1255. </div>
  1256. </div>
  1257. <div v-if="itemTool.toolPhoto.length && itemTool.tool == 56
  1258. ">
  1259. <voteStatic :askJSON="itemTool.askJson" :checkJson="checkJson[toolIndex]"></voteStatic>
  1260. </div>
  1261. </div>
  1262. <div class="addToolFunBox">
  1263. <div class="addToolFun" @click="addToolFunD(itemTaskIndex)">
  1264. <div class="addToolImg">
  1265. <img src="../../../assets/icon/add.png" alt />
  1266. </div>
  1267. <div>添加工具</div>
  1268. </div>
  1269. <!-- <div class="addToolFun" @click="addSourceFunD(itemTaskIndex)">
  1270. <div class="addToolImg">
  1271. <img src="../../../assets/icon/add.png" alt />
  1272. </div>
  1273. <div>添加资源</div>
  1274. </div> -->
  1275. </div>
  1276. </div>
  1277. </div>
  1278. <div class="funBlock" style="padding: 0">
  1279. <div class="fold" @click="fold(itemTaskIndex, $event, 1)">
  1280. <div>折叠</div>
  1281. <div class="arrow">
  1282. <img src="../../../assets/icon/fold.png" alt />
  1283. </div>
  1284. </div>
  1285. <div class="fold" @click="fold(itemTaskIndex, $event, 0)">
  1286. <div>展开</div>
  1287. <div class="arrow">
  1288. <img src="../../../assets/icon/expand.png" alt />
  1289. </div>
  1290. </div>
  1291. </div>
  1292. </div>
  1293. <div class="addTaskBorder" @click="addTaskBorder">
  1294. <div>
  1295. <img src="../../../assets/icon/addHw.png" alt />
  1296. <span>添加任务</span>
  1297. </div>
  1298. </div>
  1299. </div>
  1300. </div>
  1301. </div>
  1302. <div class="rightBox" v-if="steps == 4">
  1303. <div class="proMan">
  1304. <div class="title">
  1305. <img src="../../../assets/icon/task.png" alt />任务进展甘特图
  1306. </div>
  1307. <ganChart :Json="unitJson" v-if="steps == 4"></ganChart>
  1308. </div>
  1309. <div class="proMan">
  1310. <div class="title">
  1311. <img src="../../../assets/icon/tupu.png" alt />图谱
  1312. </div>
  1313. <graph :Json="graphJson"></graph>
  1314. </div>
  1315. <div class="proMan">
  1316. <div class="title">
  1317. <img src="../../../assets/icon/proMan.png" alt />负责人看板
  1318. </div>
  1319. <proMan :Json="unitJson" :ManAarray="ManAarray"></proMan>
  1320. </div>
  1321. </div>
  1322. <div style="
  1323. width: calc(100% - 20px);
  1324. background: rgb(255, 255, 255);
  1325. border-radius: 10px;
  1326. " v-if="steps == 5">
  1327. <div class="basic_box_success">
  1328. <div class="right_img">
  1329. <img src="../../../assets/icon/qr_code.jpg" v-if="org == '150e3120-9195-11ed-b13d-005056b86db5'" alt />
  1330. <img src="../../../assets/icon/right.png" v-else alt />
  1331. </div>
  1332. <div style="font-weight: bold;margin:10px 0" v-if="org == '150e3120-9195-11ed-b13d-005056b86db5'">
  1333. 请参加双师科创成长营活动的成员</div>
  1334. <div style="font-weight: bold;margin:10px 0" v-if="org == '150e3120-9195-11ed-b13d-005056b86db5'">
  1335. 前往腾讯未来教室小程序活动作品展示栏提交您的作品</div>
  1336. <div style="font-weight: bold">创建成功</div>
  1337. <!-- <div>您的项目编号</div>
  1338. <div class="number">{{ number }}</div>-->
  1339. <!-- <div class="success_button">
  1340. <div class="look_course" @click="isNoFinsh">
  1341. 邀请老师协同编辑
  1342. </div>
  1343. <div class="attend_others" @click="goCourse">预览项目</div>
  1344. </div> -->
  1345. </div>
  1346. </div>
  1347. <div class="info_btnBox">
  1348. <button class="info_btn" v-if="steps == 1" @click="
  1349. goTo(
  1350. fpath + '?userid=' + userid + '&oid=' + oid + '&org=' + org + '&role=' + role
  1351. )
  1352. ">
  1353. 返回项目
  1354. </button>
  1355. <button class="info_btn" v-if="steps > 1 && steps != 6" @click="lastSteps">
  1356. {{ steps == 5 ? "返回首页" : "上一步" }}
  1357. </button>
  1358. <button class="info_btn" v-if="steps < 5" @click="nextSteps">
  1359. {{
  1360. (steps == 4 && type == 2) || (steps == 3 && type != 2)
  1361. ? "确认上传"
  1362. : "下一步"
  1363. }}
  1364. </button>
  1365. </div>
  1366. </div>
  1367. </div>
  1368. </div>
  1369. <el-dialog title="提示" :visible.sync="dialogVisible" :append-to-body="true" width="25%" :before-close="handleClose"
  1370. class="dialog_diy2 customWidth">
  1371. <div>请复制该链接邀请协同编辑</div>
  1372. <div>http://www.boomyon.com/index-zhang.com</div>
  1373. <span slot="footer" class="dialog-footer">
  1374. <el-button type="primary">复制链接分享</el-button>
  1375. <el-button @click="dialogVisible = false">取消</el-button>
  1376. </span>
  1377. </el-dialog>
  1378. <el-dialog :title="updateBoolean2 ? '查看文档' : '添加文档'" :visible.sync="dialogVisible1" :append-to-body="true" width="25%"
  1379. :before-close="handleClose" class="dialog_diy2 customWidth">
  1380. <el-form>
  1381. <el-form-item label="文档标题">
  1382. <el-input v-model="tTitle" auto-complete="off" placeholder="请输入文档标题名..."></el-input>
  1383. </el-form-item>
  1384. <div>文档简介</div>
  1385. <editor-bar v-model="tdetail" @change="change"></editor-bar>
  1386. </el-form>
  1387. <span slot="footer" class="dialog-footer">
  1388. <el-button @click="dialogVisible1 = false">取 消</el-button>
  1389. <el-button type="primary" @click="addWord" v-if="!updateBoolean2">添加</el-button>
  1390. <el-button type="primary" @click="upWord" v-else>修 改</el-button>
  1391. </span>
  1392. </el-dialog>
  1393. <el-dialog title="添加文档" :visible.sync="dialogVisible2" :append-to-body="true" width="500px"
  1394. :before-close="handleClose" class="dialog_diy">
  1395. <el-form>
  1396. <el-form-item label="文档标题">
  1397. <el-input v-model="templateC.title" auto-complete="off" placeholder="请输入文档标题名..."></el-input>
  1398. </el-form-item>
  1399. <div>文档内容</div>
  1400. <editor-bar v-model="cTemplate" @change="change"></editor-bar>
  1401. </el-form>
  1402. <span slot="footer" class="dialog-footer">
  1403. <el-button @click="clearChoose">取 消</el-button>
  1404. <el-button type="primary" @click="wordNext()">确定</el-button>
  1405. </span>
  1406. </el-dialog>
  1407. <el-dialog title="添加富文本" :visible.sync="dialogVisible6" :append-to-body="true" width="500px"
  1408. :before-close="handleClose" class="dialog_diy">
  1409. <el-form>
  1410. <el-form-item label="文本标题">
  1411. <el-input v-model="AttText.title" auto-complete="off" @input="change2" placeholder="请输入文本标题..."></el-input>
  1412. </el-form-item>
  1413. <div>富文本内容</div>
  1414. <editor-bar v-model="AttText.text" @change="change"></editor-bar>
  1415. </el-form>
  1416. <span slot="footer" class="dialog-footer">
  1417. <el-button @click="clearAttText">取 消</el-button>
  1418. <el-button type="primary" @click="isAddOrUpdateAttText">确定</el-button>
  1419. </span>
  1420. </el-dialog>
  1421. <el-dialog title="添加链接" :visible.sync="dialogVisible7" :append-to-body="true" width="500px"
  1422. :before-close="handleClose" class="dialog_diy lineCss">
  1423. <el-form>
  1424. <el-form-item label="标题" :label-width="formLabelWidth">
  1425. <span>
  1426. <el-input placeholder="请输入链接标题" clearable v-model="lineTitle" class="add_input"></el-input>
  1427. </span>
  1428. </el-form-item>
  1429. <el-form-item label="链接" :label-width="formLabelWidth">
  1430. <span>
  1431. <el-input placeholder="请输入链接" clearable v-model="line" class="add_input"></el-input>
  1432. </span>
  1433. </el-form-item>
  1434. </el-form>
  1435. <span slot="footer" class="dialog-footer">
  1436. <el-button @click="clearLine">取 消</el-button>
  1437. <el-button type="primary" @click="isAddOrUpdateLine">确定</el-button>
  1438. </span>
  1439. </el-dialog>
  1440. <el-dialog title="添加项目成员" :visible.sync="dialogVisible3" :append-to-body="true" width="25%" height="80%"
  1441. :before-close="handleClose" class="addNewPP customWidth">
  1442. <div class="people">
  1443. <div class="people_top">
  1444. <div class="people_nav">选择成员</div>
  1445. <div class="people_top_right">
  1446. <div class="people_search">
  1447. <el-input style="height: 100%" placeholder="搜索成员账号" v-model="searchPeople"></el-input>
  1448. <div class="search_img" @click="searchStudent">
  1449. <img src="../../../assets/icon/search.png" alt />
  1450. </div>
  1451. </div>
  1452. </div>
  1453. </div>
  1454. <el-checkbox-group v-model="checkboxList" class="people_name">
  1455. <el-checkbox v-for="item in studentJuri" :key="item.userid" :label="item.userid">{{ item.name ? item.name :
  1456. "暂无学生可选" }}
  1457. </el-checkbox>
  1458. </el-checkbox-group>
  1459. </div>
  1460. <span slot="footer" class="dialog-footer">
  1461. <el-button @click="dialogVisible3 = false">取 消</el-button>
  1462. <el-button type="primary" @click="isAddPP">确定</el-button>
  1463. </span>
  1464. </el-dialog>
  1465. <el-dialog title="添加班级" :visible.sync="dialogVisibleClass" :append-to-body="true" width="400px" height="80%"
  1466. :before-close="handleClose" class="addNewPP">
  1467. <div class="people" style="height: 300px">
  1468. <div class="people_top">
  1469. <div class="people_nav">选择班级</div>
  1470. </div>
  1471. <el-checkbox-group v-model="checkboxList2" class="people_name">
  1472. <div v-for="(item, index) in grade" :key="item.id">
  1473. <el-checkbox :label="item.id">
  1474. {{ item.name ? item.name : "暂无班级可选" }}
  1475. </el-checkbox>
  1476. <div>
  1477. <span>{{ index }}</span>
  1478. </div>
  1479. </div>
  1480. </el-checkbox-group>
  1481. </div>
  1482. <span slot="footer" class="dialog-footer">
  1483. <el-button @click="dialogVisibleClass = false">取 消</el-button>
  1484. <el-button type="primary" @click="isAddClass">确定</el-button>
  1485. </span>
  1486. </el-dialog>
  1487. <el-dialog title="添加协同成员" :visible.sync="dialogVisibleMember" :append-to-body="true" width="25%" height="80%"
  1488. :before-close="handleClose" class="addNewPP customWidth">
  1489. <div class="people">
  1490. <div class="people_top">
  1491. <div class="people_top_right">
  1492. <div class="people_search">
  1493. <el-input placeholder="搜索完整的姓名/账号(不含邮箱后缀)" v-model="searchTN" @keyup.enter.native="getTeacher"></el-input>
  1494. <div class="search_img" @click="getTeacher">
  1495. <img src="../../../assets/icon/search.png" alt />
  1496. </div>
  1497. </div>
  1498. </div>
  1499. <div class="people_nav">选择成员</div>
  1500. </div>
  1501. <div class="t_j_box" style="
  1502. padding: 20px 0 0 25px;
  1503. width: calc(100% - 55px);
  1504. margin-left: 25px;
  1505. ">
  1506. <span>姓名</span>
  1507. <span>身份</span>
  1508. <span>账号</span>
  1509. <span>学校</span>
  1510. </div>
  1511. <el-checkbox-group v-model="checkboxList3" class="people_name" v-if="teacherJuri.length">
  1512. <el-checkbox v-for="item in teacherJuri" :key="item.userid" :label="item.userid">
  1513. <div class="t_j_box">
  1514. <el-tooltip placement="top" :content="item.name ? item.name : '暂无姓名'">
  1515. <span>{{ item.name ? item.name : "暂无姓名" }}</span>
  1516. </el-tooltip>
  1517. <span>{{ item.type == "1" ? "老师" : "学生" }}</span>
  1518. <el-tooltip placement="top" :content="item.username">
  1519. <span>{{ item.username }}</span>
  1520. </el-tooltip>
  1521. <el-tooltip placement="top" :content="item.school">
  1522. <span>{{ item.school }}</span>
  1523. </el-tooltip>
  1524. </div>
  1525. </el-checkbox>
  1526. </el-checkbox-group>
  1527. <div style="text-align: center; margin-top: 10px" v-else>暂无数据</div>
  1528. </div>
  1529. <div style="margin-top: 10px;">
  1530. <el-pagination background layout="prev, pager, next" :page-size="pageSize" :total="total"
  1531. v-if="page && teacherJuri.length" style="padding-bottom: 20px"
  1532. @current-change="handleCurrentChange"></el-pagination>
  1533. </div>
  1534. <span slot="footer" class="dialog-footer">
  1535. <el-button @click="dialogVisibleMember = false">取 消</el-button>
  1536. <el-button type="primary" @click="isAddPPTeacher">确定</el-button>
  1537. </span>
  1538. </el-dialog>
  1539. <el-dialog title="添加协同者" :visible.sync="dialogVisibleTcMember" :append-to-body="true" width="25%" height="80%"
  1540. :before-close="handleClose" class="addNewPP customWidth">
  1541. <div class="people">
  1542. <div class="people_top">
  1543. <!-- <div class="people_top_right">
  1544. <div class="people_search">
  1545. <el-input placeholder="搜索成员名称" v-model="searchTN" @keyup.enter.native="getTeacher"></el-input>
  1546. <div class="search_img" @click="getTeacher">
  1547. <img src="../../../assets/icon/search.png" alt />
  1548. </div>
  1549. </div>
  1550. </div> -->
  1551. <div class="people_nav">选择成员</div>
  1552. </div>
  1553. <div class="t_j_box" style="
  1554. padding: 20px 0 0 25px;
  1555. width: calc(100% - 55px);
  1556. margin-left: 25px;
  1557. ">
  1558. <span>姓名</span>
  1559. <span>身份</span>
  1560. <span>账号</span>
  1561. <span>学校</span>
  1562. </div>
  1563. <el-checkbox-group v-model="tcMember" class="people_name" v-if="ManAarray2.length">
  1564. <el-checkbox v-for="item in ManAarray2" :key="item.userid" :label="item.userid">
  1565. <div class="t_j_box">
  1566. <el-tooltip placement="top" :content="item.name ? item.name : '暂无姓名'">
  1567. <span>{{ item.name ? item.name : "暂无姓名" }}</span>
  1568. </el-tooltip>
  1569. <span>{{ item.type == "1" ? "老师" : "学生" }}</span>
  1570. <el-tooltip placement="top" :content="item.username">
  1571. <span>{{ item.username }}</span>
  1572. </el-tooltip>
  1573. <el-tooltip placement="top" :content="item.school">
  1574. <span>{{ item.school }}</span>
  1575. </el-tooltip>
  1576. </div>
  1577. </el-checkbox>
  1578. </el-checkbox-group>
  1579. <div style="text-align: center; margin-top: 10px" v-else>暂无数据</div>
  1580. </div>
  1581. <span slot="footer" class="dialog-footer">
  1582. <el-button @click="dialogVisibleTcMember = false">取 消</el-button>
  1583. <el-button type="primary" @click="isAddPPTcTeacher">确定</el-button>
  1584. </span>
  1585. </el-dialog>
  1586. <el-dialog title="创建问卷" :visible.sync="dialogVisible5" :append-to-body="true" width="800px"
  1587. :before-close="handleClose" class="dialog_diy">
  1588. <div>
  1589. <div class="a_add_title" style="
  1590. display: flex;
  1591. flex-direction: row;
  1592. align-items: center;
  1593. justify-content: center;
  1594. ">
  1595. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  1596. <el-input v-model="askJson.askTitle" placeholder="请输入标题" style="width: 400px"></el-input>
  1597. </div>
  1598. <div class="a_addBox">
  1599. <div style="font-size: 16px; color: #c7c7c7">请输入题目内容</div>
  1600. <div class="a_add_box" v-for="(item1, index1) in askJson.askCount" :key="index1">
  1601. <div class="a_add_head">
  1602. <div>
  1603. {{ index1 + 1 + "、" }}
  1604. <el-input class="a_add_head_input" v-model="askJson.askJson[index1].askstitle" placeholder="请输入题目...">
  1605. </el-input>
  1606. </div>
  1607. <div class="a_add_head_div">
  1608. <el-button type="primary" size="small" @click="addAskList()">添加</el-button>
  1609. <el-button type="primary" size="small" @click="deleteAskList(index1)" v-if="askJson.askCount != 1">删除
  1610. </el-button>
  1611. </div>
  1612. </div>
  1613. <div class="a_add_body">
  1614. <div class="a_add_input">
  1615. <el-input v-for="(item2, checkIndex) in askJson.askJson[index1].askItem" :key="checkIndex"
  1616. v-model="askJson.askJson[index1].checkList[checkIndex]" placeholder="请输入选项..."
  1617. style="width: 150px; margin: 10px 10px 0 0"></el-input>
  1618. </div>
  1619. <div class="a_add_body_div">
  1620. <el-button style="margin: 10px 0px 0 0" type="primary" size="small"
  1621. @click="addcheckList(askJson.askJson[index1])">添加</el-button>
  1622. <el-button type="primary" size="small" style="margin: 10px 0 0 10px"
  1623. @click="deletecheckList(askJson.askJson[index1])" v-if="askJson.askJson[index1].askItem != 1">删除
  1624. </el-button>
  1625. </div>
  1626. </div>
  1627. </div>
  1628. </div>
  1629. </div>
  1630. <span slot="footer" class="dialog-footer">
  1631. <el-button @click="dialogVisible5 = false">取 消</el-button>
  1632. <el-button type="primary" @click="addAsk">确 定</el-button>
  1633. </span>
  1634. </el-dialog>
  1635. <el-dialog title="创建选择题" :visible.sync="dialogVisibleChoice" :append-to-body="true" width="800px"
  1636. :before-close="handleClose" class="dialog_diy">
  1637. <div>
  1638. <!-- <div class="a_add_title" style="
  1639. display: flex;
  1640. flex-direction: row;
  1641. align-items: center;
  1642. justify-content: center;
  1643. ">
  1644. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  1645. <el-input v-model="testJson.testTitle" placeholder="请输入标题" style="width: 400px"></el-input>
  1646. </div> -->
  1647. <div class="a_addBox">
  1648. <div style="font-size: 16px; color: #c7c7c7">请输入题目内容</div>
  1649. <div class="a_add_box" v-for="(item1, index1) in testJson.testCount" :key="index1">
  1650. <div class="a_add_checkType">
  1651. <span :class="{ active: testJson.testJson[index1].type == '1' }"
  1652. @click="checkTestType('1', testJson.testJson[index1])">单选题</span>
  1653. <span :class="{ active: testJson.testJson[index1].type == '2' }"
  1654. @click="checkTestType('2', testJson.testJson[index1])">多选题</span>
  1655. </div>
  1656. <div class="a_add_head">
  1657. <div>
  1658. {{ index1 + 1 + "、" }}
  1659. <el-input class="a_add_head_input" v-model="testJson.testJson[index1].teststitle" placeholder="请输入题目...">
  1660. </el-input>
  1661. </div>
  1662. <div class="a_add_head_div">
  1663. <el-button type="primary" size="small" @click="addTestList()">添加</el-button>
  1664. <el-button type="primary" size="small" @click="deleteTestList(index1)" v-if="testJson.testCount != 1">删除
  1665. </el-button>
  1666. </div>
  1667. </div>
  1668. <div class="a_add_body">
  1669. <div class="a_add_input a_add_input_choice">
  1670. <el-radio-group v-model="testJson.testJson[index1].answer" v-if="testJson.testJson[index1].type == 1">
  1671. <el-radio v-for="(item2, checkIndex) in testJson.testJson[index1]
  1672. .testItem" :key="checkIndex" :label="checkIndex">
  1673. <el-input v-model="testJson.testJson[index1].checkList[checkIndex]" placeholder="请输入选项..."
  1674. style="width: 300px; margin-right: 10px"></el-input>
  1675. </el-radio>
  1676. </el-radio-group>
  1677. <el-checkbox-group v-model="testJson.testJson[index1].answer"
  1678. v-if="testJson.testJson[index1].type == '2'">
  1679. <el-checkbox v-for="(item2, checkIndex) in testJson.testJson[index1]
  1680. .testItem" :key="checkIndex" :label="checkIndex">
  1681. <el-input v-model="testJson.testJson[index1].checkList[checkIndex]" placeholder="请输入选项..."
  1682. style="width: 300px; margin-right: 10px"></el-input>
  1683. </el-checkbox>
  1684. </el-checkbox-group>
  1685. </div>
  1686. <div class="a_add_body_div">
  1687. <el-button type="primary" size="small" @click="addTcheckList(testJson.testJson[index1])">添加</el-button>
  1688. <el-button type="primary" size="small" @click="deleteTcheckList(testJson.testJson[index1])"
  1689. v-if="testJson.testJson[index1].testItem != 1">删除
  1690. </el-button>
  1691. </div>
  1692. </div>
  1693. </div>
  1694. </div>
  1695. </div>
  1696. <span slot="footer" class="dialog-footer">
  1697. <el-button @click="dialogVisibleChoice = false">取 消</el-button>
  1698. <el-button type="primary" @click="addTest">确 定</el-button>
  1699. </span>
  1700. </el-dialog>
  1701. <el-dialog title="添加问答" :visible.sync="dialogVisible8" :append-to-body="true" width="500px"
  1702. :before-close="handleClose" class="dialog_diy">
  1703. <div>
  1704. <div class="a_add_title" style="
  1705. display: flex;
  1706. flex-direction: column;
  1707. align-items: flex-start;
  1708. justify-content: center;
  1709. ">
  1710. <div style="margin-bottom: 20px; font-size: 20px">问题:</div>
  1711. <el-input v-model="answerQ" placeholder="请输入您要问的问题"></el-input>
  1712. </div>
  1713. </div>
  1714. <span slot="footer" class="dialog-footer">
  1715. <el-button @click="dialogVisible8 = false">取 消</el-button>
  1716. <el-button type="primary" @click="addAnswer">确 定</el-button>
  1717. </span>
  1718. </el-dialog>
  1719. <el-dialog title="添加问题" :visible.sync="dialogVisibleMp3" :append-to-body="true" width="500px"
  1720. :before-close="handleClose" class="dialog_diy">
  1721. <div>
  1722. <div class="a_add_title" style="
  1723. display: flex;
  1724. flex-direction: column;
  1725. align-items: flex-start;
  1726. justify-content: center;
  1727. ">
  1728. <div style="margin-bottom: 20px; font-size: 20px">问题:</div>
  1729. <el-input v-model="answerQ" placeholder="请输入您想要回答的问题"></el-input>
  1730. </div>
  1731. </div>
  1732. <span slot="footer" class="dialog-footer">
  1733. <el-button @click="dialogVisibleMp3 = false">取 消</el-button>
  1734. <el-button type="primary" @click="addMp3Answer">确 定</el-button>
  1735. </span>
  1736. </el-dialog>
  1737. <el-dialog title="上传图片" :visible.sync="choosePicVisible" :append-to-body="true" width="500px"
  1738. :before-close="handleClose" class="dialog_diy">
  1739. <div>
  1740. <div class="fileCss" style="padding-top: 20px">
  1741. <div>
  1742. <button class="info_btn" @click="addImg($event)">
  1743. 选择本地文件
  1744. <input type="file" accept="image/*" style="display: none" @change="beforeUpload1" />
  1745. </button>
  1746. </div>
  1747. <div>
  1748. <el-button @click="getAllBanner" v-if="isSysPic == false && cover.length == 0">选择系统文件</el-button>
  1749. <div class="isSysPic" v-if="isSysPic == true && cover.length > 0">
  1750. <img :src="cover[0].url" alt="" />
  1751. <div class="deletePic" @click="deleteSysPic">
  1752. <img src="../../../assets/icon/delete.png" alt="" />
  1753. </div>
  1754. </div>
  1755. </div>
  1756. </div>
  1757. <div class="fileCss">
  1758. <div>选择本地文件</div>
  1759. <div>选择系统文件</div>
  1760. </div>
  1761. </div>
  1762. <span slot="footer" class="dialog-footer">
  1763. <el-button @click="choosePicVisible = false">取 消</el-button>
  1764. <el-button type="primary" @click="choosePicVisible = false">确 定</el-button>
  1765. </span>
  1766. </el-dialog>
  1767. <el-dialog title="选择系统文件" :visible.sync="sysPicVisible" :append-to-body="true" width="710px"
  1768. :before-close="handleClose" class="dialog_diy">
  1769. <div class="cru_selectBox" style="margin: 0">
  1770. <div @click="getChoosePic(1)" class="cru_select" :class="chooseType == 1 ? 'cru_selected' : ''">
  1771. 绘画
  1772. </div>
  1773. <div @click="getChoosePic(2)" class="cru_select" :class="chooseType == 2 ? 'cru_selected' : ''">
  1774. 科技
  1775. </div>
  1776. <div @click="getChoosePic(3)" class="cru_select" :class="chooseType == 3 ? 'cru_selected' : ''">
  1777. 人文
  1778. </div>
  1779. <div @click="getChoosePic(4)" class="cru_select" :class="chooseType == 4 ? 'cru_selected' : ''">
  1780. 艺术
  1781. </div>
  1782. </div>
  1783. <div class="sysPicBox">
  1784. <div v-for="(sys, sysIndex) in sysPic" :key="sysIndex" class="sysPic">
  1785. <img :src="sys.poster" alt="" @click="chooseSysPic(sys.poster)" />
  1786. </div>
  1787. </div>
  1788. <span slot="footer" class="dialog-footer">
  1789. <el-button @click="sysPicVisible = false">取 消</el-button>
  1790. <el-button type="primary">确 定</el-button>
  1791. </span>
  1792. </el-dialog>
  1793. <el-dialog title="选择匹配" :visible.sync="dialogVisibleSelect" :append-to-body="true" width="800px"
  1794. :before-close="handleClose" class="dialog_diy dialog_diy3">
  1795. <div v-if="selectJson">
  1796. <div class="select_box1" v-if="selectSteps == 1">
  1797. <div class="select_box1_img">
  1798. <div class="select_box1_title">
  1799. <span>上传题目图片</span><span>提示:请将题目以图片的方式上传</span>
  1800. </div>
  1801. <div class="select_box1_add_img">
  1802. <div class="uploadFm" @click="addImg($event)" v-if="!selectJson.url">
  1803. <input type="file" accept="image/*" style="display: none" @change="beforeUploadSelect" />
  1804. <img src="../../../assets/icon/addPoster.png" alt="" />
  1805. </div>
  1806. <div class="isSysPic" v-else>
  1807. <img :src="selectJson.url" alt="" />
  1808. <div class="deletePic" @click="deleteSelectPic">
  1809. <img src="../../../assets/icon/delete.png" alt="" />
  1810. </div>
  1811. </div>
  1812. </div>
  1813. </div>
  1814. <div class="select_box1_select">
  1815. <div class="select_box1_title">
  1816. <span>添加选项</span><span>提示:请输入题目选项</span>
  1817. </div>
  1818. <div class="select_box1_select_box">
  1819. <el-input v-for="(item2, checkIndex) in selectJson.select" :key="checkIndex"
  1820. v-model="selectJson.select[checkIndex]" placeholder="请输入选项..."
  1821. style="width: 150px; margin: 10px 10px 0 0"></el-input>
  1822. <div class="select_box1_select_box_add">
  1823. <el-button style="margin: 10px 0px 0 0" type="primary" size="small" @click="addSelectList(selectJson)">
  1824. 添加</el-button>
  1825. <el-button type="primary" size="small" style="margin: 10px 0 0 0" @click="deleteSelectList(selectJson)"
  1826. v-if="selectJson.select && selectJson.select.length > 0">删除</el-button>
  1827. </div>
  1828. </div>
  1829. </div>
  1830. </div>
  1831. <div v-if="selectSteps == 2">
  1832. <div class="select_box2">
  1833. <div class="select_box2_title">设置答案</div>
  1834. <div class="select_box2_box">
  1835. <div class="select_box2_img">
  1836. <img :src="selectJson.url" alt="" />
  1837. </div>
  1838. <div class="select_box2_answer">
  1839. <div class="select_answer_title">根据题目选择对应答案</div>
  1840. <div class="select_box2_answer_box" v-for="(item2, checkIndex) in selectJson.select" :key="checkIndex">
  1841. <span>{{ checkIndex + 1 }}、</span>
  1842. <el-select v-model="selectJson.answer[checkIndex]" placeholder="请选择正确答案">
  1843. <el-option v-for="(e, eIndex) in selectJson.select" :key="eIndex" :label="e" :value="eIndex">
  1844. </el-option>
  1845. </el-select>
  1846. </div>
  1847. </div>
  1848. </div>
  1849. </div>
  1850. </div>
  1851. </div>
  1852. <span slot="footer" class="dialog-footer">
  1853. <el-button type="primary" @click="nextSelectSteps()" v-if="selectSteps == 1">下一步</el-button>
  1854. <el-button @click="selectSteps--" v-if="selectSteps == 2">上一步</el-button>
  1855. <el-button type="primary" @click="addSelectAnswer" v-if="selectSteps == 2">确 定</el-button>
  1856. </span>
  1857. </el-dialog>
  1858. <el-dialog title="添加评价" :visible.sync="dialogVisibleRate" :append-to-body="true" width="650px"
  1859. :before-close="handleClose" class="dialog_diy">
  1860. <div style="background: #fff; padding: 15px; box-sizing: border-box">
  1861. <div style="font-size: 18px; color: #a9a9a9">请输入学生评价指标:</div>
  1862. <div class="pjCss" style="width: 100%">
  1863. <div v-if="rateJson.length" class="elist_input" style="height: 360px; overflow: auto">
  1864. <div v-for="(eItem, eIndex) in rateJson" :key="eIndex" class="elist_input_box">
  1865. <span style="min-width: 100px; text-align: right">学生评价指标:</span>
  1866. <input type="input" v-model="eItem.value" placeholder="填写评价名称" />
  1867. <div class="remove" @click="deletRateList(eIndex)"></div>
  1868. <div style="width: 100%; display: flex">
  1869. <span style="min-width: 100px; text-align: right">评星等级:</span>
  1870. <el-rate v-model="eItem.score" disabled></el-rate>
  1871. </div>
  1872. <div class="elist_inptu_text" style="align-items: flex-start">
  1873. <span style="min-width: 100px; text-align: right">描述:</span>
  1874. <textarea class="rate_textarea" :rows="3" v-model="eItem.detail" placeholder="填写评价描述"></textarea>
  1875. </div>
  1876. </div>
  1877. </div>
  1878. <div class="addToolFunBox">
  1879. <div class="addToolFun" @click="addRateList()">
  1880. <div class="addToolImg">
  1881. <img src="../../../assets/icon/add.png" alt />
  1882. </div>
  1883. <div>添加</div>
  1884. </div>
  1885. </div>
  1886. </div>
  1887. </div>
  1888. <span slot="footer" class="dialog-footer">
  1889. <el-button @click="dialogVisibleRate = false">取 消</el-button>
  1890. <el-button type="primary" @click="addRateAnswer">确 定</el-button>
  1891. </span>
  1892. </el-dialog>
  1893. <el-dialog title="排序设置" :visible.sync="dialogVisibleSentence" :append-to-body="true" width="1000px"
  1894. :before-close="handleClose" class="dialog_diy dialog_diy3">
  1895. <div>
  1896. <div class="sentenBox">
  1897. <div class="addSen" @click="addSt">添加题目</div>
  1898. <div v-for="(st, stIndex) in sentenceList" :key="stIndex" style="padding-bottom: 20px">
  1899. <div class="sentenTopBox">
  1900. <div class="sentenTop">
  1901. <div>题目设置</div>
  1902. <div>
  1903. <el-input placeholder="请输入卡片内容" v-model="st.sentenceTitle"></el-input>
  1904. </div>
  1905. <div @click="addSen(stIndex)">添加</div>
  1906. </div>
  1907. <div class="remove1" v-if="sentenceList.length > 1" @click="deleteSentence(stIndex)"></div>
  1908. </div>
  1909. <div class="cardList">
  1910. <div v-if="st.addSentence.length > 0" class="cardBox">
  1911. <div class="isCard" v-for="(s, sIndex) in st.addSentence" :key="sIndex"
  1912. @click="setRightAnswer(s, stIndex, sIndex)">
  1913. <el-tooltip class="item" effect="light" :content="s" placement="top">
  1914. <div>{{ s }}</div>
  1915. </el-tooltip>
  1916. <div class="deleteWord" @click.stop="deleteS(s, stIndex, sIndex)">
  1917. <img src="../../../assets/icon/delete.png" alt="" />
  1918. </div>
  1919. </div>
  1920. </div>
  1921. <div class="card">
  1922. <img src="../../../assets/icon/conSentences/noTitle.png" alt="" />
  1923. </div>
  1924. </div>
  1925. <div class="rightCardBox">
  1926. <div>正确顺序</div>
  1927. <div class="rightCardList">
  1928. <div v-if="st.rightAnswer.length > 0" class="cardBox">
  1929. <div v-for="(r, rIndex) in st.rightAnswer" :key="rIndex" class="cardCss">
  1930. <div class="isCard1" @click="returnCard(r, stIndex, rIndex)">
  1931. <el-tooltip class="item" effect="light" :content="r" placement="top">
  1932. <div>{{ r }}</div>
  1933. </el-tooltip>
  1934. </div>
  1935. <div>{{ rIndex + 1 }}</div>
  1936. </div>
  1937. </div>
  1938. <div class="card" v-if="st.rightAnswer.length == 0">
  1939. <img src="../../../assets/icon/conSentences/noAnswer.png" alt="" />
  1940. </div>
  1941. </div>
  1942. </div>
  1943. </div>
  1944. </div>
  1945. </div>
  1946. <span slot="footer" class="dialog-footer">
  1947. <el-button @click="dialogVisibleSentence = false">取 消</el-button>
  1948. <el-button type="primary" @click="addSentenceTool">确 定</el-button>
  1949. </span>
  1950. </el-dialog>
  1951. <el-dialog title="添加表格" :visible.sync="dialogVisibleTable" :append-to-body="true" width="95%"
  1952. :before-close="handleClose" class="dialog_diy">
  1953. <el-form>
  1954. <!-- <el-form-item label="文本标题">
  1955. <el-input v-model="AttText.title" auto-complete="off" @input="change2" placeholder="请输入文本标题..."></el-input>
  1956. </el-form-item> -->
  1957. <div>表格内容</div>
  1958. <Table v-model="tableJson.text" @change="change" v-if="dialogVisibleTable"></Table>
  1959. </el-form>
  1960. <span slot="footer" class="dialog-footer">
  1961. <el-button @click="dialogVisibleTable = false">取 消</el-button>
  1962. <el-button type="primary" @click="addTableJson">确定</el-button>
  1963. </span>
  1964. </el-dialog>
  1965. <el-dialog title="添加表格" :visible.sync="dialogVisibleTable1" :append-to-body="true" width="95%"
  1966. :before-close="handleClose" class="dialog_diy">
  1967. <el-form>
  1968. <!-- <el-form-item label="文本标题">
  1969. <el-input v-model="AttText.title" auto-complete="off" @input="change2" placeholder="请输入文本标题..."></el-input>
  1970. </el-form-item> -->
  1971. <div>表格内容</div>
  1972. <Table v-model="tableJson.text" @change="change" v-if="dialogVisibleTable1"></Table>
  1973. </el-form>
  1974. <span slot="footer" class="dialog-footer">
  1975. <el-button @click="dialogVisibleTable1 = false">取 消</el-button>
  1976. <el-button type="primary" @click="addTable">确定</el-button>
  1977. </span>
  1978. </el-dialog>
  1979. <el-dialog title="查看表格" :visible.sync="dialogVisibleTable2" :append-to-body="true" width="95%"
  1980. :before-close="handleClose" class="dialog_diy">
  1981. <el-form>
  1982. <div class="cont" v-html="tableJson.text" style="line-height: 24px"></div>
  1983. </el-form>
  1984. <span slot="footer" class="dialog-footer">
  1985. <el-button @click="dialogVisibleTable2 = false">关 闭</el-button>
  1986. </span>
  1987. </el-dialog>
  1988. <el-dialog title="分组设置" :visible.sync="dialogVisibleGroup" :append-to-body="true" width="650px"
  1989. :before-close="handleClose" class="dialog_diy">
  1990. <div class="groupBox">
  1991. <div v-if="groupJson.group" class="groupContent">
  1992. <div class="groupTitle">请设置小组数量</div>
  1993. <div v-for="(item, index) in groupJson.group" :key="index" class="groupName">
  1994. <span class="groupn">组{{ index + 1 }}名称:</span>
  1995. <el-input v-model="item.name" placeholder="请输入名称..." style="width: 250px"></el-input>
  1996. <div class="groupBtn">
  1997. <el-button type="primary" size="small" @click="addGroup(index)">
  1998. 添加</el-button>
  1999. <el-button type="primary" size="small" @click="deleteGroup(index)"
  2000. v-if="groupJson.group && groupJson.group.length > 1">删除</el-button>
  2001. </div>
  2002. </div>
  2003. </div>
  2004. <div class="groupContent">
  2005. <div class="groupTitle">请设置每组人数数量</div>
  2006. <!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
  2007. style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
  2008. <el-input-number v-model="groupJson.number" :controls="false" :min="2" :max="10"
  2009. placeholder="2-10人以内"></el-input-number>
  2010. </div>
  2011. </div>
  2012. <span slot="footer" class="dialog-footer">
  2013. <el-button @click="dialogVisibleGroup = false">取 消</el-button>
  2014. <el-button type="primary" @click="addGroupJson">确定</el-button>
  2015. </span>
  2016. </el-dialog>
  2017. <el-dialog title="添加工具" :visible.sync="dialogVisibleTool" :append-to-body="true" width="600px"
  2018. :before-close="handleClose" class="dialog_diy addToolsDia">
  2019. <div class="toolChoose" style="padding: 0 0 30px 30px">
  2020. <div class="tools">
  2021. <div class="leftTools" style="
  2022. width: 95%;
  2023. padding: 0 0 15px 0;
  2024. border-bottom: 1px solid #efefef;
  2025. margin-bottom: 15px;
  2026. ">
  2027. <div style="min-height: 163px">
  2028. <div class="toolSort">
  2029. <div class="tool">
  2030. <div class="whiteBIcon" @click="addToolFun(1)">
  2031. <img src="../../../assets/icon/secondToolList/whiteBoard.png" alt />
  2032. <div style="margin: 5px 0">电子白板</div>
  2033. </div>
  2034. </div>
  2035. <div class="tool" v-if="false">
  2036. <div class="whiteBIcon" @click="addToolFun(6)">
  2037. <img src="../../../assets/icon/secondToolList/doc.png" alt />
  2038. <div style="margin: 5px 0">协同文档</div>
  2039. </div>
  2040. </div>
  2041. <div class="tool">
  2042. <div class="whiteBIcon" @click="addToolFun(3)">
  2043. <img src="../../../assets/icon/secondToolList/mindMapping.png" alt />
  2044. <div style="margin: 5px 0">思维导图</div>
  2045. </div>
  2046. </div>
  2047. <div class="tool">
  2048. <div class="whiteBIcon" @click="addToolFun(48)">
  2049. <img src="../../../assets/icon/fourthToolList/table.png" alt />
  2050. <div style="margin: 5px 0">表格</div>
  2051. </div>
  2052. </div>
  2053. <!-- <div class="tool">
  2054. <div class="whiteBIcon" @click="addToolFun(15)">
  2055. <img src="../../../assets/icon/thirdToolList/answer.png" alt />
  2056. <div style="margin: 5px 0">问答</div>
  2057. </div>
  2058. </div> -->
  2059. <div class="tool">
  2060. <div class="whiteBIcon" @click="addToolFun(52)">
  2061. <img src="../../../assets/icon/fourthToolList/text.png" alt />
  2062. <div style="margin: 5px 0">文档</div>
  2063. </div>
  2064. </div>
  2065. <div class="tool">
  2066. <div class="whiteBIcon" @click="addToolFun(51)">
  2067. <img src="../../../assets/icon/fourthToolList/upload.png" alt />
  2068. <div style="margin: 5px 0">资源库</div>
  2069. </div>
  2070. </div>
  2071. <!-- <div class="tool">
  2072. <div class="whiteBIcon" @click="addToolFun(53)">
  2073. <img src="../../../assets/icon/fourthToolList/file.png" alt />
  2074. <div style="margin: 5px 0">文件上传</div>
  2075. </div>
  2076. </div> -->
  2077. <div class="tool">
  2078. <div class="whiteBIcon" @click="addToolFun(54)">
  2079. <img src="../../../assets/icon/fourthToolList/photo.png" alt />
  2080. <div style="margin: 5px 0">拍照</div>
  2081. </div>
  2082. </div>
  2083. <!-- <div class="tool">
  2084. <div class="whiteBIcon" @click="addToolFun(55)">
  2085. <img
  2086. src="../../../assets/icon/fourthToolList/zip.png"
  2087. alt
  2088. />
  2089. <div style="margin: 5px 0">文件</div>
  2090. </div>
  2091. </div> -->
  2092. <div class="tool">
  2093. <div class="whiteBIcon" @click="addToolFun(56)">
  2094. <img src="../../../assets/icon/thirdToolList/ask.png" alt />
  2095. <div style="margin: 5px 0">投票</div>
  2096. </div>
  2097. </div>
  2098. <div class="tool">
  2099. <div class="whiteBIcon" @click="addToolFun(57)">
  2100. <img src="../../../assets/icon/fourthToolList/cocopi.png" alt />
  2101. <div style="margin: 5px 0">CocoPi</div>
  2102. </div>
  2103. </div>
  2104. </div>
  2105. </div>
  2106. </div>
  2107. </div>
  2108. </div>
  2109. <!-- <span slot="footer" class="dialog-footer">
  2110. <el-button @click="dialogVisible4 = false">取 消</el-button>
  2111. <el-button type="primary" @click="addChaptersDataTools">确定</el-button>
  2112. </span> -->
  2113. </el-dialog>
  2114. <el-dialog title="添加资源" :visible.sync="dialogVisibleSource" :append-to-body="true" width="700px"
  2115. :before-close="handleClose" class="dialog_diy addToolsDia">
  2116. <div class="toolChoose">
  2117. <div class="tools">
  2118. <div class="leftTools" style="width: 100%">
  2119. <div>
  2120. <div class="basic_box">
  2121. <div>
  2122. <div class="add_chapters_box" v-if="sourcesData.length == 0" style="height: 185px"></div>
  2123. <div v-else class="add_chapters_box" style="display: flex; flex-direction: column">
  2124. <div class="chapter_upload" v-for="(item, index) in sourcesData" :key="index"
  2125. @click="getChapterData2($event, index, item.type)">
  2126. <div class="chapter_upload_t" style="width: 100%"></div>
  2127. <div class="chapter_upload_o" style="
  2128. position: relative;
  2129. display: flex;
  2130. align-items: center;
  2131. ">
  2132. <div class="chapter_upload_l" style="padding: 1px 0 0 10px">
  2133. <div v-if="item.type == 2" class="chapter_upload_l_i1"></div>
  2134. <div v-if="item.type == 3 ||
  2135. item.type == 9 ||
  2136. item.type == 6 ||
  2137. item.type == 12 ||
  2138. item.type == 13 ||
  2139. item.type == 7
  2140. " class="chapter_upload_l_i5" style="margin-left: 1px"></div>
  2141. <div v-if="item.type == 8" class="chapter_upload_l_i8" style="margin-left: 1px"></div>
  2142. </div>
  2143. <div class="chapter_upload_ic" style="
  2144. cursor: pointer;
  2145. position: absolute;
  2146. width: 45px;
  2147. right: 0;
  2148. top: 0;
  2149. ">
  2150. <div class="chapter_upload_ic_l"></div>
  2151. <div class="chapter_upload_ic_r" style="position: absolute"
  2152. @click.stop="deleteChapterData2($event, index)">
  2153. <div></div>
  2154. </div>
  2155. </div>
  2156. <div class="chapter_upload_n">
  2157. <input v-if="item.type == 2 ||
  2158. item.type == 3 ||
  2159. item.type == 9 ||
  2160. item.type == 12 ||
  2161. item.type == 13 ||
  2162. item.type == 7
  2163. " :placeholder="item.name" @change="updataVideoT2($event, index)" style="
  2164. border: none;
  2165. outline: none;
  2166. width: 80%;
  2167. minwidth: 215px;
  2168. z-index: 99;
  2169. font-size: 14px;
  2170. white-space: nowrap;
  2171. overflow: hidden;
  2172. text-overflow: ellipsis;
  2173. " />
  2174. <input :placeholder="item.name" v-if="item.type == 6" style="
  2175. border: none;
  2176. outline: none;
  2177. width: 80%;
  2178. white-space: nowrap;
  2179. overflow: hidden;
  2180. text-overflow: ellipsis;
  2181. " readonly="true" @click="selectAttText2(index)" />
  2182. <input :placeholder="item.title ? item.title : '链接'" v-if="item.type == 8" style="
  2183. border: none;
  2184. outline: none;
  2185. width: 80%;
  2186. white-space: nowrap;
  2187. overflow: hidden;
  2188. text-overflow: ellipsis;
  2189. " readonly="true" @click="selectLine2(index)" />
  2190. <div class="chapter_upload_ud" style="z-index: 99">
  2191. <div class="chapter_upload_up" @click="upCd2($event, index)"></div>
  2192. <div class="chapter_upload_down" @click="downCd2($event, index)"></div>
  2193. </div>
  2194. </div>
  2195. </div>
  2196. </div>
  2197. </div>
  2198. </div>
  2199. <div class="add_info_box">
  2200. <button class="info_btn" @click="addImg($event)">
  2201. 添加文件
  2202. <input type="file" accept="*" style="display: none" v-if="inputShow"
  2203. @change="beforeUpload3($event, 13)" />
  2204. </button>
  2205. <!-- <button class="info_btn" @click="addImg($event)">
  2206. 添加视频
  2207. <input
  2208. type="file"
  2209. accept="video/mp4, video/quicktime, video/x-msvideo"
  2210. style="display: none"
  2211. v-if="inputShow"
  2212. @change="beforeUpload3($event, 2)"
  2213. />
  2214. </button>
  2215. <button class="info_btn" @click="addImg($event)">
  2216. 添加附件
  2217. <input
  2218. type="file"
  2219. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  2220. style="display: none"
  2221. v-if="inputShow"
  2222. @change="beforeUpload3($event, 3)"
  2223. />
  2224. </button> -->
  2225. <button class="info_btn" @click="addAttText()">
  2226. 添加图文
  2227. </button>
  2228. <button class="info_btn" @click="openLine()">
  2229. 添加链接
  2230. </button>
  2231. <button class="info_btn" @click="pasteLine()">
  2232. 嵌入代码
  2233. </button>
  2234. <button class="info_btn" @click="openSource()">
  2235. 添加资源
  2236. </button>
  2237. </div>
  2238. <div v-if="proVisible" class="mask">
  2239. <div class="progressBox">
  2240. <!-- <div id="closePro" class="closeCss">
  2241. <img src="../../../assets/icon/close.png" alt />
  2242. </div> -->
  2243. <div class="lbox">
  2244. <img src="../../../assets/loading.gif" />上传中,请稍后
  2245. </div>
  2246. <div style="margin-bottom: 10px">
  2247. <span>{{ isFinishSize }}M</span> /
  2248. <span>{{ isAllSize }}M</span>
  2249. </div>
  2250. <el-progress :text-inside="true" :stroke-width="20" :percentage="progress"
  2251. style="width: 80%"></el-progress>
  2252. </div>
  2253. </div>
  2254. </div>
  2255. </div>
  2256. </div>
  2257. </div>
  2258. </div>
  2259. <span slot="footer" class="dialog-footer">
  2260. <el-button @click="dialogVisibleSource = false">取 消</el-button>
  2261. <el-button type="primary" @click="addSourceData">确定</el-button>
  2262. </span>
  2263. </el-dialog>
  2264. <el-dialog title="查看文档" :visible.sync="fullDialogVisible" :append-to-body="true" width="100%"
  2265. :before-close="handleClose" :show-close="false" class="dialog_diy full_diy" :class="{ full_diy2: fulltype == 9 }">
  2266. <div slot="title" class="header-title">
  2267. <div style="color: #fff">查看文档</div>
  2268. <div @click="fullDialogVisible = false" style="
  2269. cursor: pointer;
  2270. position: absolute;
  2271. top: 20px;
  2272. right: 20px;
  2273. color: #fff;
  2274. ">
  2275. 退出全屏
  2276. </div>
  2277. </div>
  2278. <div style="height: 100%">
  2279. <iframe v-if="fulltype == 3" style="width: 100%; height: 100%; border: none" :src="fullUrl"></iframe>
  2280. <pdf v-else-if="fulltype == 9" :pdfUrl="fullUrl" style="width: 100%; height: 100%; overflow: auto">
  2281. </pdf>
  2282. <div class="wheel" v-if="fulltype == 6" style="
  2283. box-shadow: 0 0 6px 1px #f2f2f2;
  2284. width: 100%;
  2285. background: #f1f1f1;
  2286. ">
  2287. <div class="texttitle" style="width: 100%; box-sizing: border-box">
  2288. 查看文档
  2289. </div>
  2290. <el-form class="textBox" style="height: 90%">
  2291. <el-form-item class="textTitle">
  2292. <div style="font-size: 22px; max-height: 100px; overflow: auto">
  2293. {{ fullUrl.name }}
  2294. </div>
  2295. </el-form-item>
  2296. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  2297. <div v-html="fullUrl.url" class="textContent" style="height: auto"></div>
  2298. </el-form>
  2299. </div>
  2300. </div>
  2301. <!-- <div slot="footer">
  2302. <el-button @click="fullDialogVisible = false">关 闭</el-button>
  2303. </div> -->
  2304. </el-dialog>
  2305. <el-dialog title="问答" :visible.sync="answerDialogVisible" :append-to-body="true" width="800px"
  2306. :before-close="handleClose" class="dialog_diy">
  2307. <div>
  2308. <div style="
  2309. display: flex;
  2310. flex-wrap: nowrap;
  2311. flex-direction: column;
  2312. position: relative;
  2313. ">
  2314. <div class="queTop" style="padding: 20px 0 20px 0">
  2315. <div class="question">
  2316. <img src="../../../assets/icon/question.png" alt />
  2317. </div>
  2318. <div class="queTitle">
  2319. <div style="width: 90px; min-width: 90px">提问:</div>
  2320. <div>{{ answerQ }}</div>
  2321. </div>
  2322. </div>
  2323. <div class="ediBottom">
  2324. <textarea rows="6" class="binfo_input" cols style="width: 95%; height: 120px"
  2325. v-model="questionAnswer"></textarea>
  2326. </div>
  2327. </div>
  2328. </div>
  2329. <div slot="footer">
  2330. <el-button @click="answerDialogVisible = false">取 消</el-button>
  2331. <el-button type="primary" @click="addQuestion">提 交</el-button>
  2332. </div>
  2333. </el-dialog>
  2334. <el-dialog title="文件预览" :visible.sync="dialogVisibleFile" width="50%" :before-close="handleClose" class="dialog_diy"
  2335. :class="{ fullStyle: full }">
  2336. <div slot="title" class="header-title">
  2337. <div style="color: #fff">文件预览</div>
  2338. <div style="position: absolute; top: 19px; right: 50px">
  2339. <img src="../../../assets/full.png" style="height: 16px; cursor: pointer" alt="" @click="full = !full" />
  2340. </div>
  2341. </div>
  2342. <pdf v-if="showPDF" :pdfUrl="pptImgUrl" style="width: 100%; height: 520px; overflow: auto"
  2343. :class="{ fullStyle: full }"></pdf>
  2344. <iframe v-else :src="pptImgUrl" frameborder="0" width="100%" height="600" :class="{ fullStyle: full }"></iframe>
  2345. </el-dialog>
  2346. <el-dialog title="添加文档" :visible.sync="dialogVisibleText" :append-to-body="true" width="800px"
  2347. :before-close="handleClose" class="dialog_diy">
  2348. <el-form>
  2349. <div>文档内容</div>
  2350. <editor-bar v-model="tableJson.text" @change="change" v-if="dialogVisibleText"></editor-bar>
  2351. </el-form>
  2352. <span slot="footer" class="dialog-footer">
  2353. <el-button @click="dialogVisibleText = false">取 消</el-button>
  2354. <el-button type="primary" @click="addText">确定</el-button>
  2355. </span>
  2356. </el-dialog>
  2357. <el-dialog title="上传文档" :visible.sync="dialogVisibleText3" :append-to-body="true" width="800px"
  2358. :before-close="handleClose" class="dialog_diy">
  2359. <el-form>
  2360. <div>文档内容</div>
  2361. <EditorBar2 v-model="tableJson.text" @change="change" v-if="dialogVisibleText3"></EditorBar2>
  2362. </el-form>
  2363. <span slot="footer" class="dialog-footer">
  2364. <el-button @click="dialogVisibleText3 = false">取 消</el-button>
  2365. <el-button type="primary" @click="addTextJson">确定</el-button>
  2366. </span>
  2367. </el-dialog>
  2368. <el-dialog title="查看文档" :visible.sync="dialogVisibleText2" :append-to-body="true" width="800px"
  2369. :before-close="handleClose" class="dialog_diy">
  2370. <el-form>
  2371. <div class="cont" v-html="tableJson.text" style="line-height: 24px"></div>
  2372. </el-form>
  2373. <span slot="footer" class="dialog-footer">
  2374. <el-button @click="dialogVisibleText2 = false">关 闭</el-button>
  2375. </span>
  2376. </el-dialog>
  2377. <el-dialog title="查看视频" :visible.sync="videoVisible" :append-to-body="true" width="1000px" :before-close="handleClose"
  2378. class="dialog_diy1">
  2379. <div class="workd_media" style="height: 100%" v-if="videoDetail.sources">
  2380. <video-player class="video-player vjs-custom-skin" :playsinline="true" :options="videoDetail"
  2381. @play="onPlayerPlay($event)" style="width: 100%; height: 100%"></video-player>
  2382. </div>
  2383. <div slot="footer">
  2384. <el-button style="background: #409efe; color: #fff" @click="(videoVisible = false), (videoDetail = {})">
  2385. 关 闭</el-button>
  2386. </div>
  2387. </el-dialog>
  2388. <el-dialog title="创建投票" :visible.sync="dialogVisibleVote" :append-to-body="true" width="800px"
  2389. :before-close="handleClose" class="dialog_diy">
  2390. <div>
  2391. <div class="a_add_title" style="
  2392. display: flex;
  2393. flex-direction: row;
  2394. align-items: center;
  2395. justify-content: center;
  2396. ">
  2397. <div style="margin-right: 20px; font-size: 20px">投票标题:</div>
  2398. <el-input v-model="askJson.askTitle" placeholder="请输入标题" style="width: 400px"></el-input>
  2399. </div>
  2400. <div class="a_addBox">
  2401. <div style="font-size: 16px; color: #c7c7c7">请输入投票内容</div>
  2402. <div class="a_add_box" v-for="(item1, index1) in askJson.askCount" :key="index1">
  2403. <div class="a_add_head">
  2404. <div>
  2405. {{ index1 + 1 + "、" }}
  2406. <el-input class="a_add_head_input" v-model="askJson.askJson[index1].askstitle" placeholder="请输入内容...">
  2407. </el-input>
  2408. </div>
  2409. <div class="a_add_head_div">
  2410. <el-button type="primary" size="small" @click="addAskList()">添加</el-button>
  2411. <el-button type="primary" size="small" @click="deleteAskList(index1)" v-if="askJson.askCount != 1">删除
  2412. </el-button>
  2413. </div>
  2414. </div>
  2415. <div class="a_add_body">
  2416. <div class="a_add_input">
  2417. <el-input v-for="(item2, checkIndex) in askJson.askJson[index1].askItem" :key="checkIndex"
  2418. v-model="askJson.askJson[index1].checkList[checkIndex]" placeholder="请输入投票选项..."
  2419. style="width: 150px; margin: 10px 10px 0 0"></el-input>
  2420. </div>
  2421. <div class="a_add_body_div">
  2422. <el-button style="margin: 10px 0px 0 0" type="primary" size="small"
  2423. @click="addcheckList(askJson.askJson[index1])">添加</el-button>
  2424. <el-button type="primary" size="small" style="margin: 10px 0 0 10px"
  2425. @click="deletecheckList(askJson.askJson[index1])" v-if="askJson.askJson[index1].askItem != 1">删除
  2426. </el-button>
  2427. </div>
  2428. </div>
  2429. </div>
  2430. </div>
  2431. </div>
  2432. <span slot="footer" class="dialog-footer">
  2433. <el-button @click="dialogVisibleVote = false">取 消</el-button>
  2434. <el-button type="primary" @click="addAsk">确 定</el-button>
  2435. </span>
  2436. </el-dialog>
  2437. <el-dialog title="查看投票" :visible.sync="dialogVisibleVote2" :append-to-body="true" width="1000px"
  2438. :before-close="handleClose" class="dialog_diy dialog_diy3">
  2439. <div>
  2440. <div class="a_add_title" style="
  2441. display: flex;
  2442. flex-direction: row;
  2443. align-items: center;
  2444. justify-content: center;
  2445. ">
  2446. <div style="margin-right: 20px; font-size: 20px">投票标题:</div>
  2447. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  2448. </div>
  2449. <div class="a_addBox">
  2450. <div style="font-size: 16px; color: #c7c7c7">投票内容</div>
  2451. <div class="a_add_box" v-for="(item1, index1) in askJson.askCount" :key="index1">
  2452. <div class="a_add_head">
  2453. <div style="display: flex">
  2454. {{ index1 + 1 + "、" }}
  2455. <div>{{ askJson.askJson[index1].askstitle }}</div>
  2456. </div>
  2457. <img v-if="askJson.askJson[index1].img" :src="askJson.askJson[index1].img"
  2458. style="height: 300px; margin-top: 10px; max-width: 100%" />
  2459. </div>
  2460. <div class="a_add_body">
  2461. <div class="a_add_input">
  2462. <el-radio-group v-model="radio[index1]">
  2463. <el-radio v-for="(item2, checkIndex) in askJson.askJson[index1]
  2464. .checkList" :key="checkIndex" :label="checkIndex" class="redioStyle"><span
  2465. v-html="item2"></span></el-radio>
  2466. </el-radio-group>
  2467. </div>
  2468. </div>
  2469. </div>
  2470. </div>
  2471. </div>
  2472. <span slot="footer" class="dialog-footer">
  2473. <el-button @click="dialogVisibleVote2 = false">取 消</el-button>
  2474. <el-button type="primary" @click="addStudentAsk">确 定</el-button>
  2475. </span>
  2476. </el-dialog>
  2477. <el-dialog title="查看投票" :visible.sync="dialogVisibleVote3" :append-to-body="true" width="1000px"
  2478. :before-close="handleClose" class="dialog_diy dialog_diy3">
  2479. <div>
  2480. <div class="a_add_title" style="
  2481. display: flex;
  2482. flex-direction: row;
  2483. align-items: center;
  2484. justify-content: center;
  2485. ">
  2486. <div style="margin-right: 20px; font-size: 20px">投票标题:</div>
  2487. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  2488. </div>
  2489. <div class="a_addBox">
  2490. <div style="font-size: 16px; color: #c7c7c7">投票内容</div>
  2491. <div class="a_add_box" v-for="(item1, index1) in askJson.askCount" :key="index1">
  2492. <div class="a_add_head">
  2493. <div style="display: flex">
  2494. {{ index1 + 1 + "、" }}
  2495. <div>{{ askJson.askJson[index1].askstitle }}</div>
  2496. </div>
  2497. <img v-if="askJson.askJson[index1].img" :src="askJson.askJson[index1].img"
  2498. style="height: 300px; margin-top: 10px; max-width: 100%" />
  2499. </div>
  2500. <div class="a_add_body">
  2501. <div class="a_add_input">
  2502. <el-radio-group v-model="radio[index1]">
  2503. <el-radio v-for="(item2, checkIndex) in askJson.askJson[index1]
  2504. .checkList" :key="checkIndex" :label="checkIndex" disabled class="redioStyle"><span
  2505. v-html="item2"></span></el-radio>
  2506. </el-radio-group>
  2507. </div>
  2508. </div>
  2509. </div>
  2510. </div>
  2511. </div>
  2512. <span slot="footer" class="dialog-footer">
  2513. <el-button @click="dialogVisibleVote3 = false">关 闭</el-button>
  2514. </span>
  2515. </el-dialog>
  2516. <el-dialog title="添加资源" :visible.sync="dialogVisibleSource2" :append-to-body="true" width="100%"
  2517. :before-close="handleClose" class="dialog_diy source_diy">
  2518. <div>
  2519. <sourceDialog :sourceData.sync="sourceData"></sourceDialog>
  2520. </div>
  2521. <span slot="footer" class="dialog-footer">
  2522. <el-button @click="dialogVisibleSource2 = false">取 消</el-button>
  2523. <el-button type="primary" @click="addSource">确定</el-button>
  2524. </span>
  2525. </el-dialog>
  2526. <el-dialog title="修改名称" :visible.sync="dialogVisibleSname" width="500px" :before-close="handleClose"
  2527. class="dialog_diy" center>
  2528. <div style="
  2529. text-align: center;
  2530. display: flex;
  2531. align-items: center;
  2532. justify-content: center;
  2533. ">
  2534. <span class="tian1">名称</span>
  2535. <el-input style="width: 240px;margin-left: 10px;" v-model="updateWorkJson.name" placeholder="请输入名称"></el-input>
  2536. </div>
  2537. <span slot="footer" class="dialog-footer">
  2538. <el-button @click="dialogVisibleSname = false">取 消</el-button>
  2539. <el-button type="primary" @click="updateName">确 定</el-button>
  2540. </span>
  2541. </el-dialog>
  2542. </div>
  2543. </template>
  2544. <script>
  2545. import "../../../common/aws-sdk-2.235.1.min.js";
  2546. import $ from "jquery";
  2547. import EditorBar from "../../../components/tools/wangEnduit";
  2548. import EditorBar2 from "../../../components/tools/wangEnduit";
  2549. import Table from "../../../components/tools/table";
  2550. import voteStatic from "../components/voteStatic.vue";
  2551. import TextT from "../../../components/tools/text";
  2552. import Mind from "../../tools/jsmind2";
  2553. import Sunburst from "../../tools/sunburst";
  2554. import SeeBoard from "../../tools/seeBoard";
  2555. import proMan from "../components/proMan.vue";
  2556. import ganChart from "../components/ganChart.vue";
  2557. import graph from "../components/graph.vue";
  2558. import pdf from "../components/vpdf";
  2559. import * as imageConversion from "image-conversion";
  2560. import courseDetailVue from "../courseDetail.vue";
  2561. import sourceDialog from "../teacherSource/dialog.vue";
  2562. export default {
  2563. components: {
  2564. EditorBar,
  2565. EditorBar2,
  2566. sourceDialog,
  2567. Mind,
  2568. Sunburst,
  2569. SeeBoard,
  2570. Table,
  2571. proMan,
  2572. ganChart,
  2573. graph,
  2574. pdf,
  2575. TextT,
  2576. voteStatic,
  2577. },
  2578. data() {
  2579. return {
  2580. checkAll: false,
  2581. chooseType: 1,
  2582. checkedCities: [],
  2583. isIndeterminate: true,
  2584. isSysPic: false,
  2585. steps: 1,
  2586. nbOrder: 0,
  2587. courseId: "",
  2588. chapToolsType: 0,
  2589. chapTools: [
  2590. {
  2591. tools: [],
  2592. toolDetail: "",
  2593. },
  2594. ],
  2595. line: "",
  2596. lineTitle: "",
  2597. sysPic: [],
  2598. sentenceList: [
  2599. {
  2600. sentenceTitle: "",
  2601. addSentence: [],
  2602. rightAnswer: [],
  2603. },
  2604. ],
  2605. isPushTitleList: [],
  2606. lineCount: 0,
  2607. lineType: 0,
  2608. chapCount: 0,
  2609. courseName: "",
  2610. isTeacherSee: false,
  2611. courseText: "",
  2612. formLabelWidth: "100px",
  2613. choosePicVisible: false,
  2614. sysPicVisible: false,
  2615. uploadLoading1: false,
  2616. noneBtnImg: false,
  2617. updateBoolean2: false,
  2618. unitIndex: 0,
  2619. taskCount: 0,
  2620. dialogVisible: false,
  2621. dialogVisible1: false,
  2622. dialogVisible2: false,
  2623. dialogVisible3: false,
  2624. dialogVisible4: false,
  2625. dialogVisible5: false,
  2626. dialogVisible6: false,
  2627. dialogVisible7: false,
  2628. dialogVisible8: false,
  2629. dialogVisible9: false,
  2630. dialogVisibleClass: false,
  2631. dialogVisibleMember: false,
  2632. dialogVisibleTcMember: false,
  2633. dialogVisibleMp3: false,
  2634. dialogVisibleSelect: false,
  2635. dialogVisibleSentence: false,
  2636. dialogVisibleRate: false,
  2637. dialogVisibleChoice: false,
  2638. dialogVisibleTool: false,
  2639. dialogVisibleSource: false,
  2640. dialogVisibleSource2: false,
  2641. answerDialogVisible: false,
  2642. dialogVisibleFile: false,
  2643. dialogVisibleText: false,
  2644. dialogVisibleText2: false,
  2645. dialogVisibleText3: false,
  2646. dialogVisibleVote: false,
  2647. dialogVisibleVote2: false,
  2648. dialogVisibleVote3: false,
  2649. dialogVisibleSname: false,
  2650. videoVisible: false,
  2651. videoDetail: {},
  2652. showPDF: "",
  2653. pptImgUrl: "",
  2654. full: false,
  2655. isClickColor: 0,
  2656. publicTool: 0,
  2657. searchPeople: "",
  2658. searchTN: "",
  2659. tcMember: "",
  2660. userid: this.$route.query.userid,
  2661. oid: this.$route.query.oid,
  2662. org: this.$route.query.org,
  2663. role: this.$route.query.role,
  2664. type: this.$route.query.type,
  2665. cid: this.$route.query.cid != undefined ? this.$route.query.cid : "",
  2666. orgArray: ["150e3120-9195-11ed-b13d-005056b86db5"],
  2667. oidArray: [],
  2668. dialogVisibleTable: false,
  2669. dialogVisibleTable1: false,
  2670. dialogVisibleTable2: false,
  2671. tableJson: {
  2672. text: "",
  2673. },
  2674. cover: [], //项目封面
  2675. myWord: [],
  2676. evaJuri: [],
  2677. evalua: "",
  2678. targetArray: [],
  2679. eTitle: "",
  2680. eJson: {},
  2681. fid: "", //一级
  2682. sid: "", //二级
  2683. tid: "", //二级
  2684. typeMode: 1,
  2685. eJSONNum: 0,
  2686. data: {
  2687. meta: {
  2688. name: "example",
  2689. author: "dd@163.com",
  2690. version: "0.2",
  2691. },
  2692. format: "node_array",
  2693. data: [
  2694. {
  2695. id: "root",
  2696. isroot: true,
  2697. topic: "",
  2698. },
  2699. ],
  2700. },
  2701. askJson: {
  2702. askCount: 1,
  2703. askTitle: "",
  2704. askJson: [
  2705. {
  2706. askstitle: "",
  2707. askItem: 1,
  2708. checkList: [],
  2709. },
  2710. ],
  2711. },
  2712. testJson: {},
  2713. selectJson: {},
  2714. rateJson: [],
  2715. unitJson2: [],
  2716. unitJson: [
  2717. {
  2718. dyName: "", //单元标题
  2719. chapterInfo: [
  2720. {
  2721. isread: false,
  2722. chapterid: this.guid(),
  2723. title: "",
  2724. courseName: "",
  2725. taskJson: [
  2726. {
  2727. task: "",
  2728. people: "",
  2729. time: "",
  2730. taskDetail: "",
  2731. chapterData: [],
  2732. toolText: "",
  2733. toolChoose: [
  2734. {
  2735. tool: [],
  2736. toolDetail: "",
  2737. toolType: 0,
  2738. askCount: 1,
  2739. askTitle: "",
  2740. askJson: [
  2741. {
  2742. askstitle: "",
  2743. askItem: 1,
  2744. checkList: [],
  2745. },
  2746. ],
  2747. },
  2748. ],
  2749. toolArray: [],
  2750. isShowTools: false,
  2751. askCount: 1,
  2752. isFold: 0,
  2753. askTitle: "",
  2754. askJson: [
  2755. {
  2756. askstitle: "",
  2757. askItem: 1,
  2758. checkList: [],
  2759. },
  2760. ],
  2761. checkJson: [
  2762. {
  2763. checkCount: [],
  2764. checkPerent: [],
  2765. },
  2766. ],
  2767. homeworkList: [],
  2768. },
  2769. ],
  2770. itemCount: 1,
  2771. fileList1: [],
  2772. video: [],
  2773. testData: [],
  2774. pData: [],
  2775. templateArray: [],
  2776. },
  2777. ],
  2778. },
  2779. ],
  2780. studentJuri: [],
  2781. teacherJuri: [],
  2782. teacherJuri2: [],
  2783. checkboxList: [],
  2784. checkboxList2: [],
  2785. checkboxList3: [],
  2786. checkboxListPeople: [],
  2787. number: "",
  2788. tTitle: "",
  2789. tdetail: "",
  2790. templateC: {},
  2791. AttText: {},
  2792. AttTextType: 0,
  2793. AttTextIndex: 0,
  2794. cTemplate: "",
  2795. CourseType: [],
  2796. CourseTypeJson: {},
  2797. courseTypeId: [],
  2798. courseTypeSon: [],
  2799. clearArray: [],
  2800. loading: false,
  2801. toolType: 0,
  2802. inputShow: true,
  2803. toolIndex: 0,
  2804. cidType: 0,
  2805. cidttt: 1,
  2806. answerQ: "",
  2807. questionAnswer: "",
  2808. grade: [],
  2809. courseUserid: "",
  2810. timer: null,
  2811. checkId: "",
  2812. isDelete: 1,
  2813. addindex: 0,
  2814. selectSteps: 1,
  2815. groupJson: {},
  2816. dialogVisibleGroup: false,
  2817. fpath: "",
  2818. ManAarray: [],
  2819. ManAarray2: [],
  2820. proVisible: false,
  2821. progress: 0,
  2822. isFinishSize: 0,
  2823. isAllsize: 0,
  2824. playerOptions: {
  2825. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  2826. autoplay: false, //如果true,浏览器准备好时开始回放。
  2827. muted: false, // 默认情况下将会消除任何音频。
  2828. loop: false, // 导致视频一结束就重新开始。
  2829. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  2830. language: "zh-CN",
  2831. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  2832. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  2833. sources: [
  2834. {
  2835. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  2836. src: "", //url地址require("../../assets/media/aaa.mp4")
  2837. },
  2838. ],
  2839. // poster: require("../../assets/tu31.png"), //你的封面地址
  2840. // poster: dataRes.imgUrl, //你的封面地址
  2841. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  2842. controlBar: {
  2843. timeDivider: true, //当前时间和持续时间的分隔符
  2844. durationDisplay: true, //显示持续时间
  2845. remainingTimeDisplay: false, //是否显示剩余时间功能
  2846. fullscreenToggle: true, //全屏按钮
  2847. },
  2848. },
  2849. sourcesData: [],
  2850. fullDialogVisible: false,
  2851. fulltype: "",
  2852. fullUrl: "",
  2853. editSourceType: 1,
  2854. radio: [],
  2855. checkJson: [],
  2856. graphJson: {},
  2857. rightBoxHeight: 0,
  2858. checkBoolean: false,
  2859. pageSize: 20,
  2860. total: 0,
  2861. page: 0,
  2862. sourceData: {},
  2863. updateWorkJson: {}
  2864. };
  2865. },
  2866. computed: {
  2867. offsetLetfPx: function () {
  2868. //addnum可以直接在模板语法里面用,相当于data内的值
  2869. return (
  2870. $(".cru_select")[this.unitIndex] &&
  2871. $(".cru_select")[this.unitIndex].offsetLeft
  2872. );
  2873. },
  2874. getVideo() {
  2875. //此处不需要携带参数
  2876. return function (url) {
  2877. var d = JSON.parse(JSON.stringify(this.playerOptions));
  2878. d.sources[0].src = url;
  2879. return d;
  2880. };
  2881. },
  2882. getMan() {
  2883. return function (people) {
  2884. let _people = "";
  2885. if (this.ManAarray.length) {
  2886. for (var i = 0; i < this.ManAarray.length; i++) {
  2887. if (this.ManAarray[i].userid == people) {
  2888. _people = this.ManAarray[i].name;
  2889. break;
  2890. }
  2891. }
  2892. }
  2893. return _people ? _people : "";
  2894. };
  2895. },
  2896. getMan2() {
  2897. return function (people) {
  2898. let _people = people;
  2899. let _people2 = "";
  2900. if (this.ManAarray.length) {
  2901. for (var i = 0; i < this.ManAarray.length; i++) {
  2902. if (this.ManAarray[i].userid == people) {
  2903. _people2 = this.ManAarray[i].name;
  2904. break;
  2905. }
  2906. }
  2907. }
  2908. if (people == this.courseUserid) {
  2909. return "";
  2910. }
  2911. return this.ManAarray.length ? _people2 : "";
  2912. };
  2913. },
  2914. getMen() {
  2915. return function (people) {
  2916. let _people = people;
  2917. let kp = [];
  2918. if (this.ManAarray.length) {
  2919. for (var k = 0; k < _people.length; k++) {
  2920. let person = _people[k];
  2921. for (var i = 0; i < this.ManAarray.length; i++) {
  2922. if (this.ManAarray[i].userid == person) {
  2923. // _people = this.ManAarray[i].name;
  2924. kp.push(this.ManAarray[i].name);
  2925. break;
  2926. }
  2927. }
  2928. }
  2929. }
  2930. return this.ManAarray.length ? (kp.length ? kp.join("、") : "") : "";
  2931. };
  2932. },
  2933. setTime() {
  2934. return function (timeA) {
  2935. var time = new Date(timeA);
  2936. time.setTime(time.getTime());
  2937. var s2 =
  2938. time.getFullYear() +
  2939. "." +
  2940. (time.getMonth() + 1 < 10
  2941. ? "0" + (time.getMonth() + 1)
  2942. : time.getMonth() + 1) +
  2943. "." +
  2944. (time.getDate() < 10 ? "0" + time.getDate() : time.getDate());
  2945. return s2;
  2946. };
  2947. }
  2948. },
  2949. watch: {
  2950. steps(newValue, oldValue) {
  2951. if ( newValue == 4 ) {
  2952. let chapters = this.unitJson;
  2953. let gjson = {
  2954. rootId: "pid",
  2955. nodes: [{ id: "pid", text: "", borderWidth: -1, color: "#128cff" }],
  2956. lines: [],
  2957. };
  2958. gjson.nodes[0].text = this.courseName;
  2959. for (var i = 0; i < chapters.length; i++) {
  2960. let _chapter = chapters[i];
  2961. gjson.nodes.push({
  2962. id: "chap" + i,
  2963. text: "阶段" + (i + 1) + "-" + _chapter.dyName,
  2964. borderWidth: -1,
  2965. color: "#0672e1",
  2966. });
  2967. gjson.lines.push({ from: "pid", to: "chap" + i });
  2968. let tasks = _chapter.chapterInfo[0].taskJson;
  2969. for (var j = 0; j < tasks.length; j++) {
  2970. let _task = tasks[j];
  2971. gjson.nodes.push({
  2972. id: "task" + i + "-" + j,
  2973. text: "任务" + (j + 1) + "-" + _task.task,
  2974. borderWidth: -1,
  2975. color: "#3c59da",
  2976. });
  2977. gjson.lines.push({ from: "chap" + i, to: "task" + i + "-" + j });
  2978. if (_task.people) {
  2979. let _people = "负责人-" + this.getGMan(_task.people);
  2980. gjson.nodes.push({
  2981. id: "people" + i + "-" + j,
  2982. text: _people,
  2983. borderWidth: -1,
  2984. color: "#004d9b",
  2985. });
  2986. gjson.lines.push({
  2987. from: "task" + i + "-" + j,
  2988. to: "people" + i + "-" + j,
  2989. });
  2990. if (_task.tcMember && _task.tcMember.length) {
  2991. for (var tc = 0; tc < _task.tcMember.length; tc++) {
  2992. let _tc = this.getGMan(_task.tcMember[tc]);
  2993. if (_tc) {
  2994. gjson.nodes.push({
  2995. id: "tc" + i + "-" + j + "-" + tc,
  2996. text: _tc,
  2997. borderWidth: -1,
  2998. color: "#53c5fb",
  2999. });
  3000. gjson.lines.push({
  3001. from: "people" + i + "-" + j,
  3002. to: "tc" + i + "-" + j + "-" + tc,
  3003. });
  3004. }
  3005. }
  3006. }
  3007. }
  3008. }
  3009. }
  3010. this.graphJson = gjson;
  3011. } else if (newValue == 5) {
  3012. this.goTo(
  3013. this.fpath +
  3014. "?userid=" +
  3015. this.userid +
  3016. "&oid=" +
  3017. this.oid +
  3018. "&org=" +
  3019. this.org + '&role=' + this.role
  3020. );
  3021. }
  3022. },
  3023. unitIndex(newValue, oldValue) {
  3024. if (this.isDelete == 2) {
  3025. this.isDelete = 1;
  3026. return;
  3027. }
  3028. if (this.cid != "") {
  3029. let _unitIndex = oldValue;
  3030. if (
  3031. JSON.stringify(this.unitJson2[_unitIndex]) ==
  3032. JSON.stringify(this.unitJson[_unitIndex])
  3033. ) {
  3034. this.$refs.rightboxR.scrollTop = 0;
  3035. return;
  3036. }
  3037. let cPan = 1;
  3038. for (
  3039. var j = 0;
  3040. j < this.unitJson[_unitIndex].chapterInfo[0].taskJson.length;
  3041. j++
  3042. ) {
  3043. // if (
  3044. // !this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].task
  3045. // ) {
  3046. // this.$message.error("请填写任务名称");
  3047. // cPan = 2
  3048. // break;
  3049. // }
  3050. // if (
  3051. // !this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].people
  3052. // ) {
  3053. // this.$message.error("请填写负责人");
  3054. // cPan = 2
  3055. // break;
  3056. // }
  3057. // if (
  3058. // !this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].time
  3059. // ) {
  3060. // this.$message.error("请填写任务起止时间");
  3061. // cPan = 2
  3062. // break;
  3063. // }
  3064. if (this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList) {
  3065. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList =
  3066. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList.filter(
  3067. (ele) => {
  3068. return ele.value != "";
  3069. }
  3070. );
  3071. }
  3072. let _task = this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolArray
  3073. for (var _tool = 0; _tool < _task.length; _tool++) {
  3074. delete _task[_tool].proVisible
  3075. }
  3076. }
  3077. if (cPan == 2) {
  3078. this.unitIndex = oldValue;
  3079. this.isDelete = 2;
  3080. return;
  3081. }
  3082. for (var i = 0; i < this.unitJson.length; i++) {
  3083. if (this.addindex != i) {
  3084. delete this.unitJson[i].isUpdate;
  3085. }
  3086. }
  3087. this.$refs.rightboxR.scrollTop = 0;
  3088. this.addindex = -1;
  3089. let params = [
  3090. {
  3091. cid: this.cid,
  3092. chapters: JSON.stringify(this.unitJson),
  3093. uid: this.userid,
  3094. unitIndex: _unitIndex,
  3095. },
  3096. ];
  3097. this.ajax
  3098. .post(this.$store.state.api + "updateStudentWorkNew4", params)
  3099. .then((res) => {
  3100. // this.$message({
  3101. // message: "修改成功",
  3102. // type: "success",
  3103. // });
  3104. // this.courseId = this.cid;
  3105. })
  3106. .catch((err) => {
  3107. this.$message.error("网络不佳");
  3108. console.error(err);
  3109. });
  3110. }
  3111. },
  3112. },
  3113. methods: {
  3114. handleCurrentChange(val) {
  3115. // console.log(`当前页: ${val}`);
  3116. this.page = val;
  3117. this.getTeacher();
  3118. },
  3119. handleCheckAllChange(val) {
  3120. this.checkedCities = val ? cityOptions : [];
  3121. this.isIndeterminate = false;
  3122. },
  3123. handleCheckedCitiesChange(value) {
  3124. let checkedCount = value.length;
  3125. this.checkAll = checkedCount === this.cities.length;
  3126. this.isIndeterminate =
  3127. checkedCount > 0 && checkedCount < this.cities.length;
  3128. },
  3129. addHw(e) {
  3130. var el = e.currentTarget;
  3131. el.getElementsByTagName("input")[0].click();
  3132. },
  3133. change(val) {
  3134. console.log(val);
  3135. this.$forceUpdate();
  3136. },
  3137. change2(val) {
  3138. console.log(val);
  3139. this.$forceUpdate();
  3140. },
  3141. handleClose(done) {
  3142. this.videoDetail = {};
  3143. done();
  3144. },
  3145. imgChange1(file, fileList, type, itemTaskIndex) {
  3146. if (type == 1) {
  3147. var _tmp = this.cover;
  3148. } else if (
  3149. type == 2 ||
  3150. type == 3 ||
  3151. type == 6 ||
  3152. type == 7 ||
  3153. type == 8
  3154. ) {
  3155. var _tmp =
  3156. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  3157. .chapterData;
  3158. } else if (type == 4) {
  3159. var _tmp = this.unitJson[this.unitIndex].chapterInfo[0].fileList1;
  3160. } else {
  3161. var _tmp =
  3162. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  3163. .homeworkList;
  3164. }
  3165. this.noneBtnImg = _tmp.length >= 1;
  3166. },
  3167. goTo(path) {
  3168. this.$router.push(path);
  3169. },
  3170. guid() {
  3171. var _num,
  3172. i,
  3173. _guid = "";
  3174. for (i = 0; i < 32; i++) {
  3175. _guid += Math.floor(Math.random() * 16).toString(16); //随机0 - 16 的数字 转变为16进制的字符串
  3176. _num = Math.floor((i - 7) / 4); //计算 (i-7)除4
  3177. if (_num > -1 && _num < 4 && i == 7 + 4 * _num) {
  3178. //会使guid中间加 "-" 形式为xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
  3179. _guid += "-";
  3180. }
  3181. }
  3182. return _guid;
  3183. },
  3184. lastSteps() {
  3185. if (this.steps == 5) {
  3186. this.goTo(
  3187. this.fpath +
  3188. "?userid=" +
  3189. this.userid +
  3190. "&oid=" +
  3191. this.oid +
  3192. "&org=" +
  3193. this.org + '&role=' + this.role
  3194. );
  3195. } else {
  3196. if (this.cidttt == 0) {
  3197. this.steps--;
  3198. if (this.steps == 1) {
  3199. setTimeout(() => {
  3200. this.checkEva(this.checkId);
  3201. }, 0);
  3202. }
  3203. } else {
  3204. if (this.steps == 3) {
  3205. this.steps = 1;
  3206. setTimeout(() => {
  3207. this.checkEva(this.checkId);
  3208. }, 0);
  3209. }
  3210. if (this.steps == 4) {
  3211. this.steps--;
  3212. setTimeout(() => {
  3213. this.checkEva(this.checkId);
  3214. }, 0);
  3215. }
  3216. }
  3217. }
  3218. },
  3219. navSteps(s) {
  3220. let typeT = 1;
  3221. if (this.courseTypeId.length) {
  3222. let array = Object.keys(this.CourseTypeJson);
  3223. for (var t = 0; t < array.length; t++) {
  3224. var tp = array[t];
  3225. var tAarray = [];
  3226. for (var tt = 0; tt < this.CourseTypeJson[tp].length; tt++) {
  3227. tAarray.push(this.CourseTypeJson[tp][tt].id);
  3228. }
  3229. for (var tt = 0; tt < this.courseTypeId.length; tt++) {
  3230. if (tAarray.indexOf(this.courseTypeId[tt]) != -1) {
  3231. typeT++;
  3232. }
  3233. }
  3234. }
  3235. }
  3236. if (this.oid == "1c3b9def-8fbe-11ed-b13d-005056b86db5") {
  3237. typeT++;
  3238. }
  3239. if (this.CourseType.length == 0) {
  3240. typeT = 3
  3241. }
  3242. if (this.courseName == "" || typeT != 3) {
  3243. if (typeT != 3) {
  3244. this.$message.error("分类为必选项目,请将信息补充完整后进行下一步");
  3245. } else {
  3246. this.$message.error("请将信息填写完整");
  3247. }
  3248. return;
  3249. }
  3250. if (this.cidttt == 0) {
  3251. if (this.steps == 1) {
  3252. if (this.cid == "" || this.cid == undefined) {
  3253. this.addWork();
  3254. } else {
  3255. if (this.userid != this.courseUserid) {
  3256. if (
  3257. this.checkboxListPeople.join(",") !=
  3258. this.checkboxList3.join(",")
  3259. ) {
  3260. this.updateWork();
  3261. } else {
  3262. this.updateWork2();
  3263. }
  3264. } else {
  3265. this.updateWork();
  3266. }
  3267. }
  3268. this.setMan();
  3269. }
  3270. if (s == 1) {
  3271. this.steps = 1;
  3272. setTimeout(() => {
  3273. this.checkEva(this.checkId);
  3274. }, 0);
  3275. }
  3276. if (s == 2) {
  3277. this.steps = 2;
  3278. }
  3279. if (s == 3) {
  3280. this.cTemplate = this.templateC.content;
  3281. this.dialogVisible2 = false;
  3282. this.steps = 3;
  3283. setTimeout(() => {
  3284. this.checkEva(this.checkId);
  3285. }, 1000);
  3286. }
  3287. if (s == 4 && this.cidType == 0) {
  3288. this.$message.error("请将信息填写完整");
  3289. return;
  3290. } else if (s == 4) {
  3291. let cPan = 1;
  3292. for (var i = 0; i < this.unitJson.length; i++) {
  3293. for (
  3294. var j = 0;
  3295. j < this.unitJson[i].chapterInfo[0].taskJson.length;
  3296. j++
  3297. ) {
  3298. // if (
  3299. // !this.unitJson[i].chapterInfo[0].taskJson[j].task
  3300. // ) {
  3301. // this.$message.error("请填写任务名称");
  3302. // cPan = 2
  3303. // break;
  3304. // }
  3305. // if (
  3306. // !this.unitJson[i].chapterInfo[0].taskJson[j].people
  3307. // ) {
  3308. // this.$message.error("请填写负责人");
  3309. // cPan = 2
  3310. // break;
  3311. // }
  3312. // if (
  3313. // !this.unitJson[i].chapterInfo[0].taskJson[j].time
  3314. // ) {
  3315. // this.$message.error("请填写任务起止时间");
  3316. // cPan = 2
  3317. // break;
  3318. // }
  3319. if (this.unitJson[i].chapterInfo[0].taskJson[j].eList) {
  3320. this.unitJson[i].chapterInfo[0].taskJson[j].eList =
  3321. this.unitJson[i].chapterInfo[0].taskJson[j].eList.filter(
  3322. (ele) => {
  3323. return ele.value != "";
  3324. }
  3325. );
  3326. }
  3327. }
  3328. }
  3329. if (cPan == 2) {
  3330. return;
  3331. }
  3332. if (this.userid != this.courseUserid) {
  3333. if (
  3334. this.checkboxListPeople.join(",") != this.checkboxList3.join(",")
  3335. ) {
  3336. this.updateWork();
  3337. } else {
  3338. this.updateWork2();
  3339. }
  3340. } else {
  3341. this.updateWork();
  3342. }
  3343. this.steps = 4;
  3344. }
  3345. } else {
  3346. if (this.steps == 1) {
  3347. if (this.cid == "" || this.cid == undefined) {
  3348. this.addWork();
  3349. } else {
  3350. if (this.userid != this.courseUserid) {
  3351. if (
  3352. this.checkboxListPeople.join(",") !=
  3353. this.checkboxList3.join(",")
  3354. ) {
  3355. this.updateWork();
  3356. } else {
  3357. this.updateWork2();
  3358. }
  3359. } else {
  3360. this.updateWork();
  3361. }
  3362. }
  3363. this.setMan();
  3364. }
  3365. if (s == 1) {
  3366. this.steps = 1;
  3367. setTimeout(() => {
  3368. this.checkEva(this.checkId);
  3369. }, 0);
  3370. }
  3371. if (s == 3) {
  3372. this.cTemplate = this.templateC.content;
  3373. this.dialogVisible2 = false;
  3374. this.steps = 3;
  3375. setTimeout(() => {
  3376. this.checkEva(this.checkId);
  3377. }, 1000);
  3378. }
  3379. if (s == 4 && this.cidType == 0) {
  3380. this.$message.error("请将信息填写完整");
  3381. return;
  3382. } else if (s == 4) {
  3383. let cPan = 1;
  3384. for (var i = 0; i < this.unitJson.length; i++) {
  3385. for (
  3386. var j = 0;
  3387. j < this.unitJson[i].chapterInfo[0].taskJson.length;
  3388. j++
  3389. ) {
  3390. // if (
  3391. // !this.unitJson[i].chapterInfo[0].taskJson[j].task
  3392. // ) {
  3393. // this.$message.error("请填写任务名称");
  3394. // cPan = 2
  3395. // break;
  3396. // }
  3397. // if (
  3398. // !this.unitJson[i].chapterInfo[0].taskJson[j].people
  3399. // ) {
  3400. // this.$message.error("请填写负责人");
  3401. // cPan = 2
  3402. // break;
  3403. // }
  3404. // if (
  3405. // !this.unitJson[i].chapterInfo[0].taskJson[j].time
  3406. // ) {
  3407. // this.$message.error("请填写任务起止时间");
  3408. // cPan = 2
  3409. // break;
  3410. // }
  3411. if (this.unitJson[i].chapterInfo[0].taskJson[j].eList) {
  3412. this.unitJson[i].chapterInfo[0].taskJson[j].eList =
  3413. this.unitJson[i].chapterInfo[0].taskJson[j].eList.filter(
  3414. (ele) => {
  3415. return ele.value != "";
  3416. }
  3417. );
  3418. }
  3419. }
  3420. }
  3421. if (cPan == 2) {
  3422. return;
  3423. }
  3424. if (this.userid != this.courseUserid) {
  3425. if (
  3426. this.checkboxListPeople.join(",") != this.checkboxList3.join(",")
  3427. ) {
  3428. this.updateWork();
  3429. } else {
  3430. this.updateWork2();
  3431. }
  3432. } else {
  3433. this.updateWork();
  3434. }
  3435. this.steps = 4;
  3436. }
  3437. }
  3438. this.$refs.stepBox.scrollTop = 0;
  3439. this.setVHeight();
  3440. },
  3441. nextSteps() {
  3442. let typeT = 1;
  3443. if (this.courseTypeId.length) {
  3444. let array = Object.keys(this.CourseTypeJson);
  3445. for (var t = 0; t < array.length; t++) {
  3446. var tp = array[t];
  3447. var tAarray = [];
  3448. for (var tt = 0; tt < this.CourseTypeJson[tp].length; tt++) {
  3449. tAarray.push(this.CourseTypeJson[tp][tt].id);
  3450. }
  3451. for (var tt = 0; tt < this.courseTypeId.length; tt++) {
  3452. if (tAarray.indexOf(this.courseTypeId[tt]) != -1) {
  3453. typeT++;
  3454. }
  3455. }
  3456. }
  3457. }
  3458. if (this.oid == "1c3b9def-8fbe-11ed-b13d-005056b86db5") {
  3459. typeT++;
  3460. }
  3461. if (this.CourseType.length == 0) {
  3462. typeT = 3
  3463. }
  3464. if (this.cidttt == 1) {
  3465. if (this.steps == 1) {
  3466. if (this.courseName != "" && typeT == 3) {
  3467. this.steps = 3;
  3468. setTimeout(() => {
  3469. this.checkEva(this.checkId);
  3470. }, 1000);
  3471. if (this.cid == "" || this.cid == undefined) {
  3472. this.addWork();
  3473. } else {
  3474. if (this.userid != this.courseUserid) {
  3475. if (
  3476. this.checkboxListPeople.join(",") !=
  3477. this.checkboxList3.join(",")
  3478. ) {
  3479. this.updateWork();
  3480. } else {
  3481. this.updateWork2();
  3482. }
  3483. } else {
  3484. this.updateWork();
  3485. }
  3486. }
  3487. } else {
  3488. if (typeT != 3) {
  3489. this.$message.error(
  3490. "分类为必选项目,请将信息补充完整后进行下一步"
  3491. );
  3492. } else {
  3493. this.$message.error("请将信息填写完整");
  3494. }
  3495. return;
  3496. }
  3497. this.setMan();
  3498. } else if (this.steps == 3) {
  3499. if (this.cid == "" || this.cid == undefined) {
  3500. if (this.courseName == "" || typeT != 3) {
  3501. if (typeT != 3) {
  3502. this.$message.error(
  3503. "分类为必选项目,请将信息补充完整后进行下一步"
  3504. );
  3505. } else {
  3506. this.$message.error("请将信息填写完整");
  3507. }
  3508. return;
  3509. } else {
  3510. this.addWork();
  3511. if (this.type != 2) {
  3512. this.steps = 5;
  3513. } else {
  3514. this.steps++;
  3515. }
  3516. }
  3517. } else {
  3518. if (this.courseName == "" || typeT != 3) {
  3519. if (typeT != 3) {
  3520. this.$message.error(
  3521. "分类为必选项目,请将信息补充完整后进行下一步"
  3522. );
  3523. } else {
  3524. this.$message.error("请将信息填写完整");
  3525. }
  3526. return;
  3527. } else {
  3528. if (this.type != 2) {
  3529. this.steps = 5;
  3530. } else {
  3531. this.steps++;
  3532. }
  3533. if (this.userid != this.courseUserid) {
  3534. if (
  3535. this.checkboxListPeople.join(",") !=
  3536. this.checkboxList3.join(",")
  3537. ) {
  3538. this.updateWork();
  3539. } else {
  3540. this.updateWork2();
  3541. }
  3542. } else {
  3543. this.updateWork();
  3544. }
  3545. }
  3546. }
  3547. } else if (this.steps == 4) {
  3548. if (this.userid != this.courseUserid) {
  3549. this.updateWork2();
  3550. // this.updateWork();
  3551. } else {
  3552. this.updateWork();
  3553. }
  3554. this.steps++;
  3555. }
  3556. } else {
  3557. if (this.steps == 1) {
  3558. if (this.courseName != "" && typeT == 3) {
  3559. if (this.cid == "" || this.cid == undefined) {
  3560. this.addWork();
  3561. } else {
  3562. if (this.userid != this.courseUserid) {
  3563. if (
  3564. this.checkboxListPeople.join(",") !=
  3565. this.checkboxList3.join(",")
  3566. ) {
  3567. this.updateWork();
  3568. } else {
  3569. this.updateWork2();
  3570. }
  3571. } else {
  3572. this.updateWork();
  3573. }
  3574. }
  3575. this.steps++;
  3576. } else {
  3577. if (typeT != 3) {
  3578. this.$message.error(
  3579. "分类为必选项目,请将信息补充完整后进行下一步"
  3580. );
  3581. } else {
  3582. this.$message.error("请将信息填写完整");
  3583. }
  3584. return;
  3585. }
  3586. this.setMan();
  3587. } else if (this.steps == 2) {
  3588. if (this.templateC.id != "" || this.templateC.id != undefined) {
  3589. this.cTemplate = this.templateC.content;
  3590. }
  3591. this.dialogVisible2 = false;
  3592. this.steps++;
  3593. setTimeout(() => {
  3594. this.checkEva(this.checkId);
  3595. }, 1000);
  3596. } else if (this.steps == 3) {
  3597. if (this.cid == "" || this.cid == undefined) {
  3598. if (this.courseName == "" || typeT != 3) {
  3599. if (typeT != 3) {
  3600. this.$message.error(
  3601. "分类为必选项目,请将信息补充完整后进行下一步"
  3602. );
  3603. } else {
  3604. this.$message.error("请将信息填写完整");
  3605. }
  3606. return;
  3607. } else {
  3608. this.addWork();
  3609. if (this.type != 2) {
  3610. this.steps = 5;
  3611. } else {
  3612. this.steps++;
  3613. }
  3614. }
  3615. } else {
  3616. if (this.courseName == "" || typeT != 3) {
  3617. if (typeT != 3) {
  3618. this.$message.error(
  3619. "分类为必选项目,请将信息补充完整后进行下一步"
  3620. );
  3621. } else {
  3622. this.$message.error("请将信息填写完整");
  3623. }
  3624. return;
  3625. } else {
  3626. if (this.type != 2) {
  3627. this.steps = 5;
  3628. } else {
  3629. this.steps++;
  3630. }
  3631. if (this.userid != this.courseUserid) {
  3632. if (
  3633. this.checkboxListPeople.join(",") !=
  3634. this.checkboxList3.join(",")
  3635. ) {
  3636. this.updateWork();
  3637. } else {
  3638. this.updateWork2();
  3639. }
  3640. } else {
  3641. this.updateWork();
  3642. }
  3643. }
  3644. }
  3645. } else if (this.steps == 4) {
  3646. if (this.userid != this.courseUserid) {
  3647. if (
  3648. this.checkboxListPeople.join(",") != this.checkboxList3.join(",")
  3649. ) {
  3650. this.updateWork();
  3651. } else {
  3652. this.updateWork2();
  3653. }
  3654. } else {
  3655. this.updateWork();
  3656. }
  3657. this.steps++;
  3658. }
  3659. }
  3660. this.$refs.stepBox.scrollTop = 0;
  3661. this.setVHeight();
  3662. },
  3663. unitSet(i) {
  3664. this.unitIndex = i;
  3665. // this.$refs.rightboxR.scrollTop = 0;
  3666. this.setVHeight();
  3667. },
  3668. time() {
  3669. if (!this.now) {
  3670. this.now = new Date().getTime();
  3671. return true;
  3672. } else {
  3673. let time = new Date().getTime();
  3674. if (time - this.now > 3000) {
  3675. this.now = time;
  3676. return true;
  3677. } else {
  3678. return false;
  3679. }
  3680. }
  3681. },
  3682. deleteUnit(i) {
  3683. var _this = this;
  3684. if (_this.time()) {
  3685. _this
  3686. .$confirm("确定删除此单元吗?", "提示", {
  3687. confirmButtonText: "确定",
  3688. cancelButtonText: "取消",
  3689. type: "warning",
  3690. })
  3691. .then(() => {
  3692. _this.isDelete = 2;
  3693. // _this.unitIndex = _this.unitIndex - 1;
  3694. _this.deleteWork(_this.unitJson[i].chapterInfo[0].chapterid);
  3695. // _this.$message.success("删除成功");
  3696. })
  3697. .catch(() => {
  3698. return;
  3699. });
  3700. }
  3701. },
  3702. deleteWork(chapid) {
  3703. let params = [
  3704. {
  3705. cid: this.cid,
  3706. chapters: JSON.stringify(this.unitJson),
  3707. uid: this.userid,
  3708. chapid: chapid,
  3709. },
  3710. ];
  3711. this.ajax
  3712. .post(this.$store.state.api + "deleteStudentWork", params)
  3713. .then((res) => {
  3714. this.$message({
  3715. message: "删除成功",
  3716. type: "success",
  3717. });
  3718. this.unitJson.splice(this.unitIndex, 1);
  3719. this.deleteStudentToolS(this.unitIndex);
  3720. this.unitIndex = this.unitIndex - 1;
  3721. })
  3722. .catch((err) => {
  3723. this.$message.error("网络不佳");
  3724. console.error(err);
  3725. });
  3726. },
  3727. deleteTool(itemTaskIndex, i) {
  3728. // var _this = this;
  3729. // if (_this.time()) {
  3730. // _this
  3731. // .$confirm("确定删除此工具吗?", "提示", {
  3732. // confirmButtonText: "确定",
  3733. // cancelButtonText: "取消",
  3734. // type: "warning",
  3735. // })
  3736. // .then(() => {
  3737. // _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  3738. // itemTaskIndex
  3739. // ].toolChoose.splice(i, 1);
  3740. // _this.$message.success("删除成功");
  3741. // })
  3742. // .catch(() => {
  3743. // return;
  3744. // });
  3745. // }
  3746. var _this = this;
  3747. _this
  3748. .$confirm("确定删除此步骤吗?", "提示", {
  3749. confirmButtonText: "确定",
  3750. cancelButtonText: "取消",
  3751. type: "warning",
  3752. })
  3753. .then(() => {
  3754. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  3755. itemTaskIndex
  3756. ].toolArray.splice(i, 1);
  3757. this.deleteStudentToolSTT(itemTaskIndex, i);
  3758. _this.$message.success("删除成功");
  3759. })
  3760. .catch(() => {
  3761. return;
  3762. });
  3763. },
  3764. deleteStudentToolSTT(task, tool) {
  3765. let params = [
  3766. {
  3767. cid: this.cid,
  3768. stage: this.unitIndex,
  3769. task: task,
  3770. tool: tool,
  3771. },
  3772. ];
  3773. this.ajax
  3774. .post(this.$store.state.api + "deleteStudentToolSTT", params)
  3775. .then((res) => { })
  3776. .catch((err) => {
  3777. console.error(err);
  3778. });
  3779. },
  3780. deleteStudentToolST(task) {
  3781. let params = [
  3782. {
  3783. cid: this.cid,
  3784. stage: this.unitIndex,
  3785. task: task,
  3786. },
  3787. ];
  3788. this.ajax
  3789. .post(this.$store.state.api + "deleteStudentToolST", params)
  3790. .then((res) => { })
  3791. .catch((err) => {
  3792. console.error(err);
  3793. });
  3794. },
  3795. deleteStudentToolS() {
  3796. let params = [
  3797. {
  3798. cid: this.cid,
  3799. stage: this.unitIndex,
  3800. },
  3801. ];
  3802. this.ajax
  3803. .post(this.$store.state.api + "deleteStudentToolS", params)
  3804. .then((res) => { })
  3805. .catch((err) => {
  3806. console.error(err);
  3807. });
  3808. },
  3809. deleteSentence(i) {
  3810. var _this = this;
  3811. if (_this.time()) {
  3812. _this
  3813. .$confirm("确定删除此题目吗?", "提示", {
  3814. confirmButtonText: "确定",
  3815. cancelButtonText: "取消",
  3816. type: "warning",
  3817. })
  3818. .then(() => {
  3819. _this.sentenceList.splice(i, 1);
  3820. _this.$message.success("删除成功");
  3821. })
  3822. .catch(() => {
  3823. return;
  3824. });
  3825. }
  3826. },
  3827. deleteS(s, i, j) {
  3828. this.sentenceList[i].addSentence.splice(j, 1);
  3829. if (this.sentenceList[i].rightAnswer.indexOf(s) != -1) {
  3830. var a = this.sentenceList[i].rightAnswer.indexOf(s);
  3831. this.sentenceList[i].rightAnswer.splice(a, 1);
  3832. }
  3833. },
  3834. openT() {
  3835. window.parent.postMessage(
  3836. {
  3837. tools: "25",
  3838. },
  3839. "*"
  3840. );
  3841. },
  3842. deleteTask(i) {
  3843. var _this = this;
  3844. if (_this.time()) {
  3845. _this
  3846. .$confirm("确定删除此任务吗?", "提示", {
  3847. confirmButtonText: "确定",
  3848. cancelButtonText: "取消",
  3849. type: "warning",
  3850. })
  3851. .then(() => {
  3852. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson.splice(
  3853. i,
  3854. 1
  3855. );
  3856. this.deleteStudentToolST(i);
  3857. _this.$message.success("删除成功");
  3858. })
  3859. .catch(() => {
  3860. return;
  3861. });
  3862. }
  3863. },
  3864. handlePictureCardPreview(file) {
  3865. this.dialogImageUrl = file.url;
  3866. },
  3867. openUpdateName(work) {
  3868. this.updateWorkJson = JSON.parse(JSON.stringify(work));
  3869. this.updateWorkJson.name = this.updateWorkJson.name ? this.updateWorkJson.name : this.setTime(this.updateWorkJson.create_at)
  3870. this.dialogVisibleSname = true;
  3871. },
  3872. updateName() {
  3873. if (!this.updateWorkJson.name) {
  3874. this.$message.error("请填写名称")
  3875. return
  3876. }
  3877. let params = [{
  3878. id: this.updateWorkJson.id,
  3879. name: this.updateWorkJson.name.replace(/%/g, "%25"),
  3880. }]
  3881. this.ajax
  3882. .post(this.$store.state.api + "updateSCourseName", params)
  3883. .then((res) => {
  3884. this.$message({
  3885. message: "修改成功",
  3886. type: "success",
  3887. });
  3888. this.updateWorkJson = {};
  3889. this.dialogVisibleSname = false;
  3890. this.seleteCourseUpdate();
  3891. })
  3892. .catch((err) => {
  3893. console.error(err);
  3894. });
  3895. },
  3896. clean(i, c) {
  3897. this.unitJson[this.unitIndex].chapterInfo[i].fileList1.splice(c, 1);
  3898. },
  3899. handle_remove1(file, fileList, type) {
  3900. var _tmp = this.cover;
  3901. for (var i = 0, len = _tmp.length; i < len; i++) {
  3902. if (_tmp[i].uid == file.uid) {
  3903. _tmp.splice(i, 1);
  3904. break;
  3905. }
  3906. this.cover = _tmp;
  3907. }
  3908. this.noneBtnImg = _tmp.length >= 1;
  3909. this.isSysPic = false;
  3910. },
  3911. addImg(e) {
  3912. var el = e.currentTarget || e;
  3913. el.getElementsByTagName("input")[0].click();
  3914. e.target.value = "";
  3915. },
  3916. addChaptersTools(i) {
  3917. this.chapTools = [
  3918. {
  3919. tools: [],
  3920. toolDetail: "",
  3921. },
  3922. ];
  3923. this.chapCount = i;
  3924. this.dialogVisible4 = true;
  3925. },
  3926. isNoFinsh() {
  3927. this.$message.warning("功能正在开发中");
  3928. },
  3929. addAttText(i) {
  3930. this.AttText = {
  3931. title: "",
  3932. text: "",
  3933. };
  3934. // this.taskCount = i;
  3935. this.AttTextType = 0;
  3936. this.$forceUpdate();
  3937. this.dialogVisible6 = true;
  3938. },
  3939. openSource(i) {
  3940. this.lineCount = i;
  3941. this.sourceData = {};
  3942. this.dialogVisibleSource2 = true;
  3943. },
  3944. addSource() {
  3945. if (!Object.keys(this.sourceData).length) {
  3946. this.$message.error("请选择要上传的资源");
  3947. return;
  3948. }
  3949. let keys = Object.keys(this.sourceData);
  3950. for (var i = 0; i < keys.length; i++) {
  3951. this.sourcesData.push({
  3952. name: "链接",
  3953. title: this.sourceData[keys[i]].name,
  3954. src: this.sourceData[keys[i]].url,
  3955. type: 8,
  3956. });
  3957. }
  3958. this.$forceUpdate();
  3959. this.dialogVisibleSource2 = false;
  3960. },
  3961. downloadFile2(f) {
  3962. const loading = this.$loading.service({
  3963. background: "rgba(255, 255, 255, 0.7)",
  3964. target: document.body,
  3965. text: "文件加载中...",
  3966. });
  3967. let url2 = f.url;
  3968. let _url2 = "";
  3969. if (
  3970. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  3971. ) {
  3972. _url2 = url2.split(
  3973. "https://view.officeapps.live.com/op/view.aspx?src="
  3974. )[1];
  3975. } else {
  3976. _url2 = url2;
  3977. }
  3978. let params = {
  3979. url: _url2,
  3980. name: f.name,
  3981. };
  3982. this.ajax
  3983. .get(this.$store.state.api + "download", params)
  3984. .then((res) => {
  3985. loading.close();
  3986. let content = res.data.data.data;
  3987. let ab = new ArrayBuffer(content.length);
  3988. let view = new Uint8Array(ab);
  3989. for (var i = 0; i < content.length; ++i) {
  3990. view[i] = content[i];
  3991. }
  3992. let elink = document.createElement("a");
  3993. elink.download = f.name;
  3994. elink.style.display = "none";
  3995. let blob = new Blob([ab], {
  3996. type: res.data.response.headers["content-type"] + ";charset=UTF-8",
  3997. });
  3998. elink.href = URL.createObjectURL(blob);
  3999. document.body.appendChild(elink);
  4000. elink.click();
  4001. document.body.removeChild(elink);
  4002. })
  4003. .catch((err) => {
  4004. loading.close();
  4005. console.error(err);
  4006. });
  4007. },
  4008. pasteLine(i) {
  4009. navigator.clipboard
  4010. .readText()
  4011. .then((v) => {
  4012. console.log("获取剪贴板成功:", v);
  4013. const html = v;
  4014. const regex = /src="(.*?)"/g;
  4015. const match = regex.exec(html);
  4016. if (match && match[1]) {
  4017. console.log(match[1]);
  4018. this.$message.success("粘贴成功");
  4019. this.sourcesData.push({
  4020. name: "链接",
  4021. title: "嵌入代码",
  4022. src: match[1],
  4023. type: 8,
  4024. });
  4025. } else {
  4026. // console.log("未找到包含 src 属性的 iframe");
  4027. this.$message.error("没有找到粘贴的链接");
  4028. }
  4029. })
  4030. .catch((v) => {
  4031. console.log("获取剪贴板失败: ", v);
  4032. });
  4033. },
  4034. openLine(i) {
  4035. this.line = "";
  4036. this.lineTitle = "";
  4037. // this.lineCount = i;
  4038. this.lineType = 0;
  4039. this.$forceUpdate();
  4040. this.dialogVisible7 = true;
  4041. },
  4042. beforeUpload1(event, type) {
  4043. const loading = this.openLoading();
  4044. var file = event.target.files[0];
  4045. var credentials = {
  4046. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  4047. secretAccessKey: "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",
  4048. }; //秘钥形式的登录上传
  4049. window.AWS.config.update(credentials);
  4050. window.AWS.config.region = "cn-northwest-1"; //设置区域
  4051. var bucket = new window.AWS.S3({
  4052. params: {
  4053. Bucket: "ccrb",
  4054. },
  4055. }); //选择桶
  4056. var _this = this;
  4057. if (file) {
  4058. var params = {
  4059. Key:
  4060. file.name.split(".")[0] +
  4061. new Date().getTime() +
  4062. "." +
  4063. file.name.split(".")[file.name.split(".").length - 1],
  4064. ContentType: file.type,
  4065. Body: file,
  4066. "Access-Control-Allow-Credentials": "*",
  4067. ACL: "public-read",
  4068. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  4069. var options = {
  4070. partSize: 2048 * 1024 * 1024,
  4071. queueSize: 2,
  4072. leavePartsOnError: true,
  4073. };
  4074. bucket
  4075. .upload(params, options)
  4076. .on("httpUploadProgress", function (evt) {
  4077. //这里可以写进度条
  4078. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  4079. })
  4080. .send(function (err, data) {
  4081. loading.close();
  4082. if (err) {
  4083. _this.$message.error("上传失败");
  4084. } else {
  4085. _this.cover.push({
  4086. name: file.name,
  4087. url: data.Location,
  4088. uid: file.uid,
  4089. });
  4090. _this.imgChange1(null, null, 1, null);
  4091. _this.choosePicVisible = false;
  4092. console.log(data.Location);
  4093. }
  4094. });
  4095. }
  4096. },
  4097. beforeUploadSelect(event, type) {
  4098. const loading = this.openLoading();
  4099. var file = event.target.files[0];
  4100. var credentials = {
  4101. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  4102. secretAccessKey: "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",
  4103. }; //秘钥形式的登录上传
  4104. window.AWS.config.update(credentials);
  4105. window.AWS.config.region = "cn-northwest-1"; //设置区域
  4106. var bucket = new window.AWS.S3({
  4107. params: {
  4108. Bucket: "ccrb",
  4109. },
  4110. }); //选择桶
  4111. var _this = this;
  4112. if (file) {
  4113. var params = {
  4114. Key:
  4115. file.name.split(".")[0] +
  4116. new Date().getTime() +
  4117. "." +
  4118. file.name.split(".")[file.name.split(".").length - 1],
  4119. ContentType: file.type,
  4120. Body: file,
  4121. "Access-Control-Allow-Credentials": "*",
  4122. ACL: "public-read",
  4123. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  4124. var options = {
  4125. partSize: 2048 * 1024 * 1024,
  4126. queueSize: 2,
  4127. leavePartsOnError: true,
  4128. };
  4129. bucket
  4130. .upload(params, options)
  4131. .on("httpUploadProgress", function (evt) {
  4132. //这里可以写进度条
  4133. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  4134. })
  4135. .send(function (err, data) {
  4136. loading.close();
  4137. if (err) {
  4138. _this.$message.error("上传失败");
  4139. } else {
  4140. _this.selectJson.url = data.Location;
  4141. console.log(data.Location);
  4142. }
  4143. });
  4144. }
  4145. },
  4146. chooseSysPic(p) {
  4147. this.cover.push({
  4148. name: "系统图片.png",
  4149. url: p,
  4150. });
  4151. this.imgChange1(null, null, 1, null);
  4152. this.isSysPic = true;
  4153. this.sysPicVisible = false;
  4154. },
  4155. beforeUpload(data) {
  4156. this.uploadLoading1 = true;
  4157. var file = data.file;
  4158. var credentials = {
  4159. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  4160. secretAccessKey: "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",
  4161. }; //秘钥形式的登录上传
  4162. window.AWS.config.update(credentials);
  4163. window.AWS.config.region = "cn-northwest-1"; //设置区域
  4164. var bucket = new window.AWS.S3({
  4165. params: {
  4166. Bucket: "ccrb",
  4167. },
  4168. }); //选择桶
  4169. var _this = this;
  4170. if (file) {
  4171. var params = {
  4172. Key:
  4173. file.name.split(".")[0] +
  4174. new Date().getTime() +
  4175. "." +
  4176. file.name.split(".")[file.name.split(".").length - 1],
  4177. ContentType: file.type,
  4178. Body: file,
  4179. "Access-Control-Allow-Credentials": "*",
  4180. ACL: "public-read",
  4181. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  4182. var options = {
  4183. partSize: 2048 * 1024 * 1024,
  4184. queueSize: 2,
  4185. leavePartsOnError: true,
  4186. };
  4187. bucket
  4188. .upload(params, options)
  4189. .on("httpUploadProgress", function (evt) {
  4190. //这里可以写进度条
  4191. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  4192. })
  4193. .send(function (err, data) {
  4194. _this.uploadLoading1 = false;
  4195. if (err) {
  4196. _this.$message.error("上传失败");
  4197. } else {
  4198. //上传成功处理
  4199. _this.unitJson[_this.unitIndex].chapterInfo[0].fileList1.push({
  4200. name: file.name,
  4201. url: data.Location,
  4202. uid: file.uid,
  4203. });
  4204. _this.imgChange();
  4205. console.log(data.Location);
  4206. }
  4207. });
  4208. }
  4209. },
  4210. onExceed() {
  4211. this.$message.error("项目封面仅支持上传一张,请删除后再进行上传");
  4212. },
  4213. beforeUpload2(event, unitIndex, type, itemTaskIndex) {
  4214. // const loading = this.openLoading();
  4215. var file = event.target.files[0];
  4216. var credentials = {
  4217. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  4218. secretAccessKey: "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",
  4219. }; //秘钥形式的登录上传
  4220. window.AWS.config.update(credentials);
  4221. window.AWS.config.region = "cn-northwest-1"; //设置区域
  4222. var bucket = new window.AWS.S3({
  4223. params: {
  4224. Bucket: "ccrb",
  4225. },
  4226. }); //选择桶
  4227. var _this = this;
  4228. if (type == 3) {
  4229. var b = [
  4230. "DOC",
  4231. "DOCX",
  4232. "DOCM",
  4233. "DOTM",
  4234. "DOTX",
  4235. "PPTX",
  4236. "PPSX",
  4237. "PPT",
  4238. "PPS",
  4239. "PPTM",
  4240. "POTM",
  4241. "PPAM",
  4242. "POTX",
  4243. "PPSM",
  4244. ];
  4245. if (
  4246. b.indexOf(
  4247. file.name
  4248. .split(".")
  4249. [file.name.split(".").length - 1].toLocaleUpperCase()
  4250. ) != -1
  4251. ) {
  4252. if (file.size / 1024 / 1024 > 80) {
  4253. this.$message.error("上传文件大于80兆,请重新选择文件!");
  4254. this.inputShow = true;
  4255. // loading.close();
  4256. return;
  4257. }
  4258. } else if (
  4259. file.name
  4260. .split(".")
  4261. [file.name.split(".").length - 1].toLocaleUpperCase() != "PDF"
  4262. ) {
  4263. if (file.size / 1024 / 1024 > 80) {
  4264. this.$message.error("添加成上传文件大于80兆,请重新选择文件!");
  4265. this.inputShow = true;
  4266. // loading.close();
  4267. return;
  4268. }
  4269. }
  4270. }
  4271. this.inputShow = false;
  4272. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4273. itemTaskIndex
  4274. ].progress = 0;
  4275. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4276. itemTaskIndex
  4277. ].proVisible = true;
  4278. if (file) {
  4279. var params = {
  4280. Key:
  4281. file.name.split(".")[0] +
  4282. new Date().getTime() +
  4283. "." +
  4284. file.name.split(".")[file.name.split(".").length - 1],
  4285. ContentType: file.type,
  4286. Body: file,
  4287. "Access-Control-Allow-Credentials": "*",
  4288. ACL: "public-read",
  4289. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  4290. var options = {
  4291. partSize: 2048 * 1024 * 1024,
  4292. queueSize: 2,
  4293. leavePartsOnError: true,
  4294. };
  4295. bucket
  4296. .upload(params, options)
  4297. .on("httpUploadProgress", function (evt) {
  4298. //这里可以写进度条
  4299. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  4300. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4301. itemTaskIndex
  4302. ].progress = parseInt((evt.loaded * 80) / evt.total);
  4303. })
  4304. .send(function (err, data) {
  4305. // loading.close();
  4306. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4307. itemTaskIndex
  4308. ].progress = 100;
  4309. setTimeout(() => {
  4310. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4311. itemTaskIndex
  4312. ].proVisible = false;
  4313. _this.$forceUpdate();
  4314. }, 1000);
  4315. _this.inputShow = true;
  4316. if (err) {
  4317. _this.$message.error("上传失败");
  4318. } else {
  4319. if (type == 2 || type == 3) {
  4320. if (
  4321. data.Location.split(".")[
  4322. data.Location.split(".").length - 1
  4323. ].toLocaleUpperCase() == "PDF"
  4324. ) {
  4325. type = 9;
  4326. }
  4327. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4328. itemTaskIndex
  4329. ].chapterData.push({
  4330. name: file.name,
  4331. url: data.Location,
  4332. uid: file.uid,
  4333. type: type,
  4334. });
  4335. _this.imgChange1(null, null, type, itemTaskIndex);
  4336. } else if (type == 4) {
  4337. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  4338. itemTaskIndex
  4339. ].fileList1.push({
  4340. name: file.name,
  4341. url: data.Location,
  4342. uid: file.uid,
  4343. });
  4344. _this.imgChange1(null, null, type, itemTaskIndex);
  4345. } else if (type == 5) {
  4346. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  4347. itemTaskIndex
  4348. ].homeworkList.push({
  4349. name: file.name,
  4350. url: data.Location,
  4351. uid: file.uid,
  4352. });
  4353. _this.imgChange1(null, null, type, itemTaskIndex);
  4354. }
  4355. console.log(data.Location);
  4356. }
  4357. });
  4358. }
  4359. },
  4360. getVideo2(url) {
  4361. var d = JSON.parse(JSON.stringify(this.playerOptions));
  4362. d.sources[0].src = url;
  4363. return d;
  4364. },
  4365. beforeUpload3(event, type) {
  4366. // const loading = this.openLoading();
  4367. var file = event.target.files[0];
  4368. var credentials = {
  4369. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  4370. secretAccessKey: "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",
  4371. }; //秘钥形式的登录上传
  4372. window.AWS.config.update(credentials);
  4373. window.AWS.config.region = "cn-northwest-1"; //设置区域
  4374. var bucket = new window.AWS.S3({
  4375. params: {
  4376. Bucket: "ccrb",
  4377. },
  4378. }); //选择桶
  4379. var _this = this;
  4380. if (type == 3) {
  4381. var b = [
  4382. "DOC",
  4383. "DOCX",
  4384. "DOCM",
  4385. "DOTM",
  4386. "DOTX",
  4387. "PPTX",
  4388. "PPSX",
  4389. "PPT",
  4390. "PPS",
  4391. "PPTM",
  4392. "POTM",
  4393. "PPAM",
  4394. "POTX",
  4395. "PPSM",
  4396. ];
  4397. if (
  4398. b.indexOf(
  4399. file.name
  4400. .split(".")
  4401. [file.name.split(".").length - 1].toLocaleUpperCase()
  4402. ) != -1
  4403. ) {
  4404. if (file.size / 1024 / 1024 > 80) {
  4405. this.$message.error("上传文件大于80兆,请重新选择文件!");
  4406. this.inputShow = true;
  4407. // loading.close();
  4408. return;
  4409. }
  4410. } else if (
  4411. file.name
  4412. .split(".")
  4413. [file.name.split(".").length - 1].toLocaleUpperCase() != "PDF"
  4414. ) {
  4415. if (file.size / 1024 / 1024 > 80) {
  4416. this.$message.error("添加成上传文件大于80兆,请重新选择文件!");
  4417. this.inputShow = true;
  4418. // loading.close();
  4419. return;
  4420. }
  4421. }
  4422. }
  4423. _this.inputShow = false;
  4424. _this.progress = 0;
  4425. _this.proVisible = true;
  4426. _this.isFinishSize = 0;
  4427. _this.isAllSize = (file.size / 1024 / 1024).toFixed(2);
  4428. if (file) {
  4429. var params = {
  4430. Key:
  4431. file.name.split(".")[0] +
  4432. new Date().getTime() +
  4433. "." +
  4434. file.name.split(".")[file.name.split(".").length - 1],
  4435. ContentType: file.type,
  4436. Body: file,
  4437. "Access-Control-Allow-Credentials": "*",
  4438. ACL: "public-read",
  4439. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  4440. var options = {
  4441. partSize: 2048 * 1024 * 1024,
  4442. queueSize: 2,
  4443. leavePartsOnError: true,
  4444. };
  4445. bucket
  4446. .upload(params, options)
  4447. .on("httpUploadProgress", function (evt) {
  4448. //这里可以写进度条
  4449. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  4450. _this.progress = parseInt((evt.loaded / evt.total) * 100);
  4451. _this.isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  4452. })
  4453. .send(function (err, data) {
  4454. // loading.close();
  4455. _this.progress = 100;
  4456. _this.isFinishSize = _this.isAllSize;
  4457. setTimeout(() => {
  4458. _this.proVisible = false;
  4459. // _this.dialogVisibleSource = false;
  4460. _this.$forceUpdate();
  4461. }, 1000);
  4462. _this.inputShow = true;
  4463. if (err) {
  4464. _this.$message.error("上传失败");
  4465. } else {
  4466. if (type == 13) {
  4467. let _type = 2;
  4468. let src = "";
  4469. var imgA = [
  4470. "png",
  4471. "jpg",
  4472. "jpeg",
  4473. "bmp",
  4474. "gif",
  4475. "webp",
  4476. "psd",
  4477. "svg",
  4478. "tiff",
  4479. ];
  4480. var fileA = [
  4481. "DOC",
  4482. "DOCX",
  4483. "DOCM",
  4484. "DOTM",
  4485. "DOTX",
  4486. "PPTX",
  4487. "PPSX",
  4488. "PPT",
  4489. "PPS",
  4490. "PPTM",
  4491. "POTM",
  4492. "PPAM",
  4493. "POTX",
  4494. "PPSM",
  4495. "XLSX",
  4496. "XLS",
  4497. ];
  4498. var videoA = [
  4499. "AVI",
  4500. "NAVI",
  4501. "MPEG",
  4502. "ASF",
  4503. "MOV",
  4504. "WMV",
  4505. "3GP",
  4506. "RM",
  4507. "RMVB",
  4508. "FLV",
  4509. "F4V",
  4510. "H.264",
  4511. "H.265",
  4512. "REAL VIDEO",
  4513. "MKV",
  4514. "WebM",
  4515. "HDDVD",
  4516. "MP4",
  4517. "MPG",
  4518. "M4V",
  4519. "MGV",
  4520. "OGV",
  4521. "QTM",
  4522. "STR",
  4523. "AMC",
  4524. "DVX",
  4525. "EVO",
  4526. "DAT",
  4527. "OGG",
  4528. "OGM",
  4529. ];
  4530. if (
  4531. fileA.indexOf(
  4532. data.Location.split(".")[
  4533. data.Location.split(".").length - 1
  4534. ].toLocaleUpperCase()
  4535. ) != -1
  4536. ) {
  4537. _type = 3;
  4538. src =
  4539. "https://view.officeapps.live.com/op/view.aspx?src=" +
  4540. encodeURIComponent(data.Location);
  4541. } else if (
  4542. videoA.indexOf(
  4543. data.Location.split(".")[
  4544. data.Location.split(".").length - 1
  4545. ].toLocaleUpperCase()
  4546. ) != -1
  4547. ) {
  4548. _type = 2;
  4549. src = _this.getVideo2(data.Location);
  4550. } else if (
  4551. imgA.indexOf(
  4552. data.Location.split(".")[
  4553. data.Location.split(".").length - 1
  4554. ].toLocaleLowerCase()
  4555. ) != -1
  4556. ) {
  4557. _type = 13;
  4558. } else if (
  4559. data.Location.split(".")[
  4560. data.Location.split(".").length - 1
  4561. ].toLocaleUpperCase() == "PDF"
  4562. ) {
  4563. _type = 9;
  4564. } else {
  4565. _type = 12;
  4566. }
  4567. _this.sourcesData.push({
  4568. name: file.name,
  4569. url: data.Location,
  4570. uid: file.uid,
  4571. type: _type,
  4572. src: src,
  4573. });
  4574. } if (type == 2 || type == 3) {
  4575. var src = "";
  4576. if (
  4577. data.Location.split(".")[
  4578. data.Location.split(".").length - 1
  4579. ].toLocaleUpperCase() == "PDF"
  4580. ) {
  4581. type = 9;
  4582. }
  4583. if (type == 2) {
  4584. src = _this.getVideo2(data.Location);
  4585. } else if (type == 3) {
  4586. src =
  4587. "https://view.officeapps.live.com/op/view.aspx?src=" +
  4588. encodeURIComponent(data.Location);
  4589. } else {
  4590. src = data.Location;
  4591. }
  4592. // _this.unitJson[unitIndex].chapterInfo[0].taskJson[itemTaskIndex].toolArray.push({
  4593. // tool: 51,
  4594. // toolDetail: "",
  4595. // toolPhoto: "",
  4596. // toolEdit: false,
  4597. // toolId: _this.guid(),
  4598. // toolData: {
  4599. // name: file.name,
  4600. // url: data.Location,
  4601. // uid: file.uid,
  4602. // type: type,
  4603. // src: src,
  4604. // }
  4605. // });
  4606. _this.sourcesData.push({
  4607. name: file.name,
  4608. url: data.Location,
  4609. uid: file.uid,
  4610. type: type,
  4611. src: src,
  4612. });
  4613. }
  4614. console.log(data.Location);
  4615. }
  4616. });
  4617. }
  4618. },
  4619. async beforeUploadCC(event, type, task, toolindex, tool) {
  4620. // this.$message.success('进入上传')
  4621. var file = "";
  4622. file = event.target.files[0];
  4623. var credentials = {
  4624. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  4625. secretAccessKey: "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",
  4626. }; //秘钥形式的登录上传
  4627. window.AWS.config.update(credentials);
  4628. window.AWS.config.region = "cn-northwest-1"; //设置区域
  4629. var bucket = new window.AWS.S3({
  4630. params: {
  4631. Bucket: "ccrb",
  4632. },
  4633. }); //选择桶
  4634. var _this = this;
  4635. if (type == 3 && (file.size / 1024 / 1024) > 100) {
  4636. _this.$message.error("上传文件大于100兆,请重新选择文件!");
  4637. return;
  4638. }
  4639. // _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[task].toolArray[toolindex].progress = 0;
  4640. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[task].toolArray[
  4641. toolindex
  4642. ].proVisible = true;
  4643. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[task].toolArray[
  4644. toolindex
  4645. ].isFinishSize = 0;
  4646. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[task].toolArray[
  4647. toolindex
  4648. ].isAllSize = (file.size / 1024 / 1024).toFixed(2);
  4649. _this.$forceUpdate();
  4650. var b = [
  4651. "DOC",
  4652. "DOCX",
  4653. "DOCM",
  4654. "DOTM",
  4655. "DOTX",
  4656. "PPTX",
  4657. "PPSX",
  4658. "PPT",
  4659. "PPS",
  4660. "PPTM",
  4661. "POTM",
  4662. "PPAM",
  4663. "POTX",
  4664. "PPSM",
  4665. ];
  4666. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  4667. var photoA = [
  4668. "BMP",
  4669. "GIF",
  4670. "PNG",
  4671. "JPGE",
  4672. "JPG",
  4673. "TIF",
  4674. "PCX",
  4675. "TGA",
  4676. "EXIF",
  4677. "FPX",
  4678. "SVG",
  4679. "APNG",
  4680. ];
  4681. if (
  4682. photoA.indexOf(
  4683. file.name
  4684. .split(".")
  4685. [file.name.split(".").length - 1].toLocaleUpperCase()
  4686. ) != -1 &&
  4687. type != 4
  4688. ) {
  4689. // const blob = await imageConversion.compress(file, 0.8)
  4690. file = await this.pngToWhiteBg(file);
  4691. const blob = await imageConversion.compressAccurately(file, 256);
  4692. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  4693. file = new File([blob], file.name, {
  4694. type: file.type,
  4695. });
  4696. }
  4697. if (file) {
  4698. var params = {
  4699. Key:
  4700. file.name.split(".")[0] +
  4701. new Date().getTime() +
  4702. "." +
  4703. file.name.split(".")[file.name.split(".").length - 1],
  4704. ContentType: file.type,
  4705. Body: file,
  4706. "Access-Control-Allow-Credentials": "*",
  4707. ACL: "public-read",
  4708. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  4709. var options = {
  4710. // partSize: 2048 * 1024 * 1024,
  4711. partSize: 1024 * 1024 * 1024,
  4712. queueSize: 2,
  4713. leavePartsOnError: true,
  4714. };
  4715. bucket
  4716. .upload(params, options)
  4717. .on("httpUploadProgress", function (evt) {
  4718. //这里可以写进度条
  4719. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  4720. // _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[task].toolArray[toolindex].progress = parseInt((evt.loaded * 80) / evt.total);
  4721. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  4722. task
  4723. ].toolArray[toolindex].isFinishSize = (
  4724. evt.loaded /
  4725. 1024 /
  4726. 1024
  4727. ).toFixed(2);
  4728. _this.$forceUpdate();
  4729. })
  4730. .send(function (err, data) {
  4731. // _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[task].toolArray[toolindex].progress = 100;
  4732. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  4733. task
  4734. ].toolArray[toolindex].isFinishSize =
  4735. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  4736. task
  4737. ].toolArray[toolindex].isAllSize;
  4738. _this.$forceUpdate();
  4739. setTimeout(() => {
  4740. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  4741. task
  4742. ].toolArray[toolindex].proVisible = false;
  4743. }, 1000);
  4744. if (err) {
  4745. // var a = _this.$refs.upload1.uploadFiles;
  4746. // a.splice(a.length - 1, a.length);
  4747. _this.$message.error("上传失败");
  4748. } else {
  4749. // _this.$message.success('上传成功')
  4750. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  4751. var c = [
  4752. "AVI",
  4753. "NAVI",
  4754. "MPEG",
  4755. "ASF",
  4756. "MOV",
  4757. "WMV",
  4758. "3GP",
  4759. "RM",
  4760. "RMVB",
  4761. "FLV",
  4762. "F4V",
  4763. "H.264",
  4764. "H.265",
  4765. "REAL VIDEO",
  4766. "MKV",
  4767. "WebM",
  4768. "HDDVD",
  4769. "MP4",
  4770. "MPG",
  4771. "M4V",
  4772. "MGV",
  4773. "OGV",
  4774. "QTM",
  4775. "STR",
  4776. "AMC",
  4777. "DVX",
  4778. "EVO",
  4779. "DAT",
  4780. "OGG",
  4781. "OGM",
  4782. ];
  4783. if (type == 1) {
  4784. if (
  4785. ["ZIP"].indexOf(
  4786. data.Location.split(".")[
  4787. data.Location.split(".").length - 1
  4788. ].toLocaleUpperCase()
  4789. ) != -1
  4790. ) {
  4791. _this.addCourseWorksS(
  4792. tool,
  4793. 13,
  4794. data.Location,
  4795. task,
  4796. toolindex
  4797. );
  4798. } else {
  4799. _this.addCourseWorksS(
  4800. tool,
  4801. 4,
  4802. data.Location,
  4803. task,
  4804. toolindex
  4805. );
  4806. }
  4807. } else if (type == 2) {
  4808. if (
  4809. c.indexOf(
  4810. data.Location.split(".")[
  4811. data.Location.split(".").length - 1
  4812. ].toLocaleUpperCase()
  4813. ) != -1
  4814. ) {
  4815. _this.addCourseWorksS(
  4816. tool,
  4817. 5,
  4818. data.Location,
  4819. task,
  4820. toolindex
  4821. );
  4822. } else {
  4823. _this.addCourseWorksS(
  4824. tool,
  4825. 1,
  4826. data.Location,
  4827. task,
  4828. toolindex
  4829. );
  4830. }
  4831. } else if (type == 3) {
  4832. let _type = 13
  4833. var imgA = [
  4834. "png",
  4835. "jpg",
  4836. "jpeg",
  4837. "bmp",
  4838. "gif",
  4839. "webp",
  4840. "psd",
  4841. "svg",
  4842. "tiff",
  4843. ];
  4844. var fileA = [
  4845. "PDF",
  4846. "DOC",
  4847. "DOCX",
  4848. "DOCM",
  4849. "DOTM",
  4850. "DOTX",
  4851. "PPTX",
  4852. "PPSX",
  4853. "PPT",
  4854. "PPS",
  4855. "PPTM",
  4856. "POTM",
  4857. "PPAM",
  4858. "POTX",
  4859. "PPSM",
  4860. "XLSX",
  4861. "XLS",
  4862. ];
  4863. var videoA = [
  4864. "AVI",
  4865. "NAVI",
  4866. "MPEG",
  4867. "ASF",
  4868. "MOV",
  4869. "WMV",
  4870. "3GP",
  4871. "RM",
  4872. "RMVB",
  4873. "FLV",
  4874. "F4V",
  4875. "H.264",
  4876. "H.265",
  4877. "REAL VIDEO",
  4878. "MKV",
  4879. "WebM",
  4880. "HDDVD",
  4881. "MP4",
  4882. "MPG",
  4883. "M4V",
  4884. "MGV",
  4885. "OGV",
  4886. "QTM",
  4887. "STR",
  4888. "AMC",
  4889. "DVX",
  4890. "EVO",
  4891. "DAT",
  4892. "OGG",
  4893. "OGM",
  4894. ];
  4895. if (
  4896. fileA.indexOf(
  4897. data.Location.split(".")[
  4898. data.Location.split(".").length - 1
  4899. ].toLocaleUpperCase()
  4900. ) != -1
  4901. ) {
  4902. _type = 4;
  4903. } else if (
  4904. videoA.indexOf(
  4905. data.Location.split(".")[
  4906. data.Location.split(".").length - 1
  4907. ].toLocaleUpperCase()
  4908. ) != -1
  4909. ) {
  4910. _type = 5;
  4911. } else if (
  4912. imgA.indexOf(
  4913. data.Location.split(".")[
  4914. data.Location.split(".").length - 1
  4915. ].toLocaleLowerCase()
  4916. ) != -1
  4917. ) {
  4918. _type = 1;
  4919. } else {
  4920. _type = 13;
  4921. }
  4922. _this.addCourseWorksS(tool, _type, data.Location, task, toolindex);
  4923. }
  4924. console.log(data.Location);
  4925. // _this.$message.success('上传成功'+data.Location)
  4926. }
  4927. });
  4928. }
  4929. },
  4930. pngToWhiteBg(file) {
  4931. const _file = file;
  4932. let read = new FileReader();
  4933. read.readAsDataURL(file); // 文件转base64
  4934. return new Promise((resolve, reject) => {
  4935. read.onload = (e) => {
  4936. let img = new Image();
  4937. img.src = e.target.result;
  4938. img.onload = async () => {
  4939. // 生成canvas
  4940. let canvas = document.createElement("canvas");
  4941. let context = canvas.getContext("2d");
  4942. // 绘制图片到canvas上
  4943. canvas.width = img.width;
  4944. canvas.height = img.height;
  4945. // 在canvas绘制前填充白色背景
  4946. context.fillStyle = "#fff";
  4947. context.fillRect(0, 0, canvas.width, canvas.height);
  4948. context.drawImage(img, 0, 0);
  4949. let base64 = canvas.toDataURL(file["type"], 1);
  4950. let newFile = this.dataUrlToFile(base64, _file);
  4951. resolve(newFile);
  4952. };
  4953. };
  4954. });
  4955. },
  4956. dataUrlToFile(dataurl, file) {
  4957. let arr = dataurl.split(","),
  4958. mime = arr[0].match(/:(.*?);/)[1],
  4959. bstr = atob(arr[1]),
  4960. n = bstr.length,
  4961. u8arr = new Uint8Array(n);
  4962. while (n--) {
  4963. u8arr[n] = bstr.charCodeAt(n);
  4964. }
  4965. // return new Blob([u8arr], { type: mime });
  4966. return new File(
  4967. [
  4968. new Blob([u8arr], {
  4969. type: mime,
  4970. }),
  4971. ],
  4972. file.name,
  4973. {
  4974. type: mime,
  4975. }
  4976. );
  4977. },
  4978. addunit() {
  4979. if (this.cid != "") {
  4980. let _unitIndex = this.unitIndex;
  4981. let cPan = 1;
  4982. for (
  4983. var j = 0;
  4984. j < this.unitJson[_unitIndex].chapterInfo[0].taskJson.length;
  4985. j++
  4986. ) {
  4987. // if (
  4988. // !this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].task
  4989. // ) {
  4990. // this.$message.error("请填写任务名称");
  4991. // cPan = 2
  4992. // break;
  4993. // }
  4994. // if (
  4995. // !this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].people
  4996. // ) {
  4997. // this.$message.error("请填写负责人");
  4998. // cPan = 2
  4999. // break;
  5000. // }
  5001. // if (
  5002. // !this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].time
  5003. // ) {
  5004. // this.$message.error("请填写任务起止时间");
  5005. // cPan = 2
  5006. // break;
  5007. // }
  5008. if (this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList) {
  5009. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList =
  5010. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList.filter(
  5011. (ele) => {
  5012. return ele.value != "";
  5013. }
  5014. );
  5015. }
  5016. }
  5017. if (cPan == 2) {
  5018. return;
  5019. }
  5020. }
  5021. this.unitJson.push({
  5022. dyName: "", //单元标题
  5023. isUpdate: 1,
  5024. chapterInfo: [
  5025. {
  5026. isread: false,
  5027. chapterid: this.guid(),
  5028. title: "",
  5029. courseName: "",
  5030. taskJson: [
  5031. {
  5032. task: "",
  5033. people: "",
  5034. time: "",
  5035. taskDetail: "",
  5036. chapterData: [],
  5037. toolText: "",
  5038. toolChoose: [
  5039. {
  5040. tool: [],
  5041. toolDetail: "",
  5042. toolType: 0,
  5043. askCount: 1,
  5044. askTitle: "",
  5045. askJson: [
  5046. {
  5047. askstitle: "",
  5048. askItem: 1,
  5049. checkList: [],
  5050. },
  5051. ],
  5052. },
  5053. ],
  5054. toolArray: [],
  5055. isShowTools: false,
  5056. askCount: 1,
  5057. isFold: 0,
  5058. askTitle: "",
  5059. askJson: [
  5060. {
  5061. askstitle: "",
  5062. askItem: 1,
  5063. checkList: [],
  5064. },
  5065. ],
  5066. checkJson: [
  5067. {
  5068. checkCount: [],
  5069. checkPerent: [],
  5070. },
  5071. ],
  5072. homeworkList: [],
  5073. },
  5074. ],
  5075. itemCount: 1,
  5076. fileList1: [],
  5077. video: [],
  5078. testData: [],
  5079. pData: [],
  5080. templateArray: [],
  5081. },
  5082. ],
  5083. });
  5084. this.addindex = this.unitJson.length - 1;
  5085. setTimeout(() => {
  5086. this.unitIndex = this.unitJson.length - 1;
  5087. this.unitSet(this.unitIndex);
  5088. }, 0);
  5089. },
  5090. addToolFun(tool) {
  5091. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5092. // itemTaskIndex
  5093. // ].toolChoose.push({
  5094. // tool: [],
  5095. // toolDetail: "",
  5096. // toolType: 0,
  5097. // askCount: 1,
  5098. // askTitle: "",
  5099. // askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  5100. // });
  5101. if (tool == 15) {
  5102. this.tableJson.text = "";
  5103. this.dialogVisible8 = true;
  5104. } else if (tool == 48) {
  5105. this.tableJson.text = "";
  5106. this.dialogVisibleTable1 = true;
  5107. } else if (tool == 52) {
  5108. this.tableJson.text = "";
  5109. this.dialogVisibleText = true;
  5110. } else if (tool == 51) {
  5111. this.addSourceFunD(this.taskCount);
  5112. } else if (tool == 56) {
  5113. this.askJson = {
  5114. askCount: 1,
  5115. askTitle: "",
  5116. askJson: [
  5117. {
  5118. askstitle: "",
  5119. askItem: 1,
  5120. checkList: [],
  5121. },
  5122. ],
  5123. };
  5124. this.dialogVisibleVote = true;
  5125. } else {
  5126. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5127. this.taskCount
  5128. ].toolArray.push({
  5129. tool: tool,
  5130. toolDetail: "",
  5131. toolPhoto: "",
  5132. toolEdit: false,
  5133. toolId: this.guid(),
  5134. });
  5135. this.$forceUpdate();
  5136. this.dialogVisibleTool = false;
  5137. if (tool == 1 || tool == 3 || tool == 6) {
  5138. setTimeout(() => {
  5139. this.openToolFun(
  5140. tool,
  5141. this.taskCount,
  5142. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5143. this.taskCount
  5144. ].toolArray.length - 1
  5145. );
  5146. }, 500);
  5147. } else if (tool == 53 || tool == 54 || tool == 55) {
  5148. setTimeout(() => {
  5149. this.addImg(
  5150. document.getElementById(
  5151. this.taskCount.toString() +
  5152. "-" +
  5153. (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5154. this.taskCount
  5155. ].toolArray.length -
  5156. 1)
  5157. )
  5158. );
  5159. }, 500);
  5160. }
  5161. this.setPeople(this.unitIndex, this.taskCount, this.userid);
  5162. }
  5163. },
  5164. addToolFunD(itemTaskIndex) {
  5165. this.taskCount = itemTaskIndex;
  5166. this.dialogVisibleTool = true;
  5167. },
  5168. addSourceFunD(itemTaskIndex) {
  5169. this.sourcesData = [];
  5170. this.proVisible = false;
  5171. this.progress = 0;
  5172. this.inputShow = true;
  5173. this.taskCount = itemTaskIndex;
  5174. this.dialogVisibleSource = true;
  5175. },
  5176. setChapterIndex(itemTool, index) {
  5177. if (itemTool.toolData[index].type == 12) {
  5178. this.downloadFile2(itemTool.toolData[index])
  5179. return;
  5180. }
  5181. itemTool.sourceIndex = index;
  5182. this.setVHeight();
  5183. this.$forceUpdate();
  5184. },
  5185. setVHeight() {
  5186. this.$nextTick(function () {
  5187. setTimeout(() => {
  5188. let task = this.unitJson[this.unitIndex].chapterInfo[0].taskJson;
  5189. for (var j = 0; j < task.length; j++) {
  5190. let tool = task[j].toolArray;
  5191. for (var z = 0; z < tool.length; z++) {
  5192. let _tool = tool[z];
  5193. if (_tool.tool == 51) {
  5194. let ci = 0
  5195. for (var li = 0; li < _tool.toolData.length; li++) {
  5196. if (_tool.toolData[li].type != 12) {
  5197. ci++
  5198. }
  5199. }
  5200. if (ci == 0) {
  5201. _tool.isNoFile = true;
  5202. document.getElementsByClassName(
  5203. "vedioList" + j + z
  5204. )[0].style.height = 650 + "px";
  5205. document.getElementsByClassName(
  5206. "vedioList" + j + z
  5207. )[0].style.width = "100%";
  5208. } else {
  5209. _tool.isNoFile = false;
  5210. var a = document.getElementsByClassName("box_course" + j + z)[0] ? document.getElementsByClassName("box_course" + j + z)[0]
  5211. .offsetHeight : 650;
  5212. document.getElementsByClassName(
  5213. "vedioList" + j + z
  5214. )[0].style.height = a + "px";
  5215. document.getElementsByClassName(
  5216. "vedioList" + j + z
  5217. )[0].style.width = "calc(100% - 83%)";
  5218. }
  5219. this.$forceUpdate();
  5220. }
  5221. }
  5222. }
  5223. }, 0);
  5224. });
  5225. },
  5226. addSourceData() {
  5227. if (!this.sourcesData.length) {
  5228. this.$message.error("请上传资源");
  5229. return;
  5230. }
  5231. let ic = 0
  5232. for (let i = 0; i < this.sourcesData.length; i++) {
  5233. if (this.sourcesData[i].type != 12) {
  5234. ic = i
  5235. break;
  5236. }
  5237. }
  5238. if (this.editSourceType == 1) {
  5239. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5240. this.taskCount
  5241. ].toolArray.push({
  5242. tool: 51,
  5243. toolDetail: "",
  5244. toolPhoto: "",
  5245. toolEdit: false,
  5246. toolId: this.guid(),
  5247. toolData: JSON.parse(JSON.stringify(this.sourcesData)),
  5248. sourceIndex: ic,
  5249. });
  5250. } else {
  5251. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5252. this.taskCount
  5253. ].toolArray[this.toolIndex].toolData = JSON.parse(
  5254. JSON.stringify(this.sourcesData)
  5255. );
  5256. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5257. this.taskCount
  5258. ].toolArray[this.toolIndex].sourceIndex = ic;
  5259. }
  5260. this.setPeople(this.unitIndex, this.taskCount, this.userid);
  5261. this.editSourceType = 1;
  5262. this.sourcesData = [];
  5263. this.dialogVisibleSource = false;
  5264. this.dialogVisibleTool = false;
  5265. this.setVHeight();
  5266. },
  5267. openToolFun(tool, taskCount, i) {
  5268. this.taskCount = taskCount;
  5269. this.toolIndex = i;
  5270. if (tool == 48) {
  5271. const array =
  5272. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[taskCount]
  5273. .toolArray[i].toolPhoto;
  5274. let txt = "";
  5275. if (array.length) {
  5276. txt = JSON.parse(JSON.stringify(array[0].content));
  5277. }
  5278. // for (var l = 0; l < array.length; l++) {
  5279. // let _uid = array[l].userid
  5280. // if (_uid == this.userid) {
  5281. // txt = JSON.parse(JSON.stringify(array[l].content))
  5282. // break;
  5283. // }
  5284. // }
  5285. this.tableJson.text = txt
  5286. ? JSON.parse(txt)
  5287. : this.unitJson[this.unitIndex].chapterInfo[0].taskJson[taskCount]
  5288. .toolArray[i].table
  5289. ? JSON.parse(
  5290. JSON.stringify(
  5291. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[taskCount]
  5292. .toolArray[i].table
  5293. )
  5294. )
  5295. : "";
  5296. // 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)) : ''
  5297. this.dialogVisibleTable = true;
  5298. } else if (tool == 15) {
  5299. this.answerQ = JSON.parse(
  5300. JSON.stringify(
  5301. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[taskCount]
  5302. .toolArray[i].answerQ
  5303. )
  5304. );
  5305. this.answerDialogVisible = true;
  5306. } else if (tool == 52) {
  5307. const array =
  5308. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[taskCount]
  5309. .toolArray[i].toolPhoto;
  5310. let txt = "";
  5311. if (array.length) {
  5312. txt = JSON.parse(JSON.stringify(array[0].content));
  5313. }
  5314. // for (var l = 0; l < array.length; l++) {
  5315. // let _uid = array[l].userid
  5316. // if (_uid == this.userid) {
  5317. // txt = JSON.parse(JSON.stringify(array[l].content))
  5318. // break;
  5319. // }
  5320. // }
  5321. this.tableJson.text = txt
  5322. ? JSON.parse(txt)
  5323. : JSON.parse(
  5324. JSON.stringify(
  5325. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[taskCount]
  5326. .toolArray[i].text
  5327. )
  5328. );
  5329. this.dialogVisibleText3 = true;
  5330. } else if (tool == 56) {
  5331. const array =
  5332. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[taskCount]
  5333. .toolArray[i].toolPhoto;
  5334. let txt = JSON.stringify([]);
  5335. for (var l = 0; l < array.length; l++) {
  5336. let _uid = array[l].userid;
  5337. if (_uid == this.userid) {
  5338. txt = JSON.parse(JSON.stringify(array[l].content));
  5339. break;
  5340. }
  5341. }
  5342. this.radio = JSON.parse(txt);
  5343. this.askJson = JSON.parse(
  5344. JSON.stringify(
  5345. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[taskCount]
  5346. .toolArray[i].askJson
  5347. )
  5348. );
  5349. this.dialogVisibleVote2 = true;
  5350. } else {
  5351. window.parent.postMessage(
  5352. {
  5353. tools: tool + "s",
  5354. cid: this.cid,
  5355. stage: this.unitIndex,
  5356. task: taskCount,
  5357. tool: i,
  5358. },
  5359. "*"
  5360. );
  5361. if (tool == 1 || tool == 3 || tool == 6) {
  5362. this.setPeople(this.unitIndex, taskCount, this.userid);
  5363. }
  5364. }
  5365. },
  5366. previewImg(url) {
  5367. this.$hevueImgPreview(url);
  5368. },
  5369. scrollChange() {
  5370. this.rightBoxHeight = $(".rightBox")[0].scrollHeight;
  5371. },
  5372. openTable(content) {
  5373. this.tableJson.text = JSON.parse(content);
  5374. this.dialogVisibleTable2 = true;
  5375. },
  5376. addTaskBorder() {
  5377. this.unitJson[this.unitIndex].chapterInfo[0].taskJson.push({
  5378. task: "",
  5379. people: "",
  5380. time: "",
  5381. taskDetail: "",
  5382. chapterData: [],
  5383. toolText: "",
  5384. toolChoose: [
  5385. {
  5386. tool: [],
  5387. toolDetail: "",
  5388. toolType: 0,
  5389. askCount: 1,
  5390. askTitle: "",
  5391. askJson: [
  5392. {
  5393. askstitle: "",
  5394. askItem: 1,
  5395. checkList: [],
  5396. },
  5397. ],
  5398. },
  5399. ],
  5400. toolArray: [],
  5401. isShowTools: false,
  5402. askCount: 1,
  5403. isFold: 0,
  5404. askTitle: "",
  5405. askJson: [
  5406. {
  5407. askstitle: "",
  5408. askItem: 1,
  5409. checkList: [],
  5410. },
  5411. ],
  5412. checkJson: [
  5413. {
  5414. checkCount: [],
  5415. checkPerent: [],
  5416. },
  5417. ],
  5418. homeworkList: [],
  5419. });
  5420. },
  5421. add(e, i) {
  5422. var el = e.currentTarget;
  5423. el.getElementsByTagName("input")[0].click();
  5424. },
  5425. fold(i, e, type) {
  5426. var a = e.currentTarget.parentElement.parentElement;
  5427. var b = e.currentTarget.parentElement;
  5428. if (type == 1) {
  5429. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold = 1;
  5430. a.className += " smallTaskBorder";
  5431. b.className += " funBlockTop";
  5432. } else {
  5433. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold = 0;
  5434. a.className = "taskBorder";
  5435. b.className = "funBlock";
  5436. }
  5437. console.log(e);
  5438. },
  5439. deleteHomeworkBox(unitIndex, index, i) {
  5440. this.unitJson[unitIndex].chapterInfo[index].taskJson[
  5441. this.taskCount
  5442. ].homeworkList.splice(i, 1);
  5443. },
  5444. getStudent() {
  5445. let params = {
  5446. oid: this.oid,
  5447. cu: "",
  5448. cn: this.searchPeople,
  5449. };
  5450. this.ajax
  5451. .get(this.$store.state.api + "selectStudentAdd", params)
  5452. .then((res) => {
  5453. this.studentJuri = res.data[0];
  5454. })
  5455. .catch((err) => {
  5456. this.isLoading = false;
  5457. console.error(err);
  5458. });
  5459. },
  5460. onPlayerPlay() { },
  5461. getTeacher() {
  5462. let params = {
  5463. org:
  5464. this.org && this.org != "undefined" && this.org != "null"
  5465. ? this.org
  5466. : "",
  5467. oid: this.oid,
  5468. cu: "",
  5469. cn: this.searchTN,
  5470. page: this.page,
  5471. pageSize: this.pageSize,
  5472. };
  5473. this.ajax
  5474. .get(
  5475. this.$store.state.api +
  5476. (this.org && this.org != "undefined" && this.org != "null"
  5477. ? "selectUserByOidS2"
  5478. : "selectUserByOidS2"),
  5479. params
  5480. )
  5481. .then((res) => {
  5482. let teacherJuri = res.data[0];
  5483. this.total = res.data[0].length > 0 ? res.data[0][0].num : 0;
  5484. this.teacherJuri2 = JSON.parse(JSON.stringify(res.data[0]));
  5485. for (var i = 0; i < teacherJuri.length; i++) {
  5486. if (teacherJuri[i].userid == this.userid) {
  5487. teacherJuri.splice(i, 1);
  5488. break;
  5489. }
  5490. }
  5491. this.teacherJuri = teacherJuri;
  5492. })
  5493. .catch((err) => {
  5494. console.error(err);
  5495. });
  5496. },
  5497. setMan() {
  5498. let _unitJosn = this.unitJson;
  5499. // let teacherJuri = this.teacherJuri2;
  5500. this.ManAarray = [];
  5501. if (this.checkboxList3.indexOf(this.courseUserid) != -1) {
  5502. this.checkboxList3.splice(
  5503. this.checkboxList3.indexOf(this.courseUserid),
  5504. 1
  5505. );
  5506. }
  5507. let array = JSON.parse(JSON.stringify(this.checkboxList3));
  5508. if (array.indexOf(this.userid) == -1) {
  5509. array.push(this.userid);
  5510. }
  5511. if (array.indexOf(this.courseUserid) == -1) {
  5512. array.push(this.courseUserid);
  5513. }
  5514. for (var i = 0; i < _unitJosn.length; i++) {
  5515. let _chapter = _unitJosn[i].chapterInfo[0].taskJson;
  5516. for (var j = 0; j < _chapter.length; j++) {
  5517. let _task = _chapter[j];
  5518. if (array.indexOf(_task.people) == -1) {
  5519. _task.people = "";
  5520. }
  5521. if (_task.tcMember && _task.tcMember.length) {
  5522. let _tc = _task.tcMember;
  5523. let _tc2 = [];
  5524. for (var k = 0; k < _tc.length; k++) {
  5525. if (array.indexOf(_tc[k]) != -1) {
  5526. _tc2.push(_tc[k]);
  5527. }
  5528. }
  5529. _task.tcMember = _tc2;
  5530. }
  5531. }
  5532. }
  5533. let params = {
  5534. uid: array.join(","),
  5535. };
  5536. this.ajax
  5537. .get(this.$store.state.api + "getAllUserById", params)
  5538. .then((res) => {
  5539. let teacherJuri = res.data[0];
  5540. this.ManAarray = teacherJuri;
  5541. })
  5542. .catch((err) => {
  5543. console.error(err);
  5544. });
  5545. },
  5546. searchStudent() {
  5547. this.getStudent();
  5548. },
  5549. //获取班级列表
  5550. getClass() {
  5551. let params = {
  5552. oid: this.oid,
  5553. };
  5554. this.ajax
  5555. .get(this.$store.state.api + "selectClassBySchool", params)
  5556. .then((res) => {
  5557. this.grade = res.data[0];
  5558. })
  5559. .catch((err) => {
  5560. this.isLoading = false;
  5561. console.error(err);
  5562. });
  5563. },
  5564. getChapterData(e, i, j, ic, type) {
  5565. e.stopPropagation();
  5566. this.updataC = true;
  5567. this.icc = ic;
  5568. if ((type == 2 || type == 3) && e.target.tagName !== "INPUT") {
  5569. console.log("还不能下载图片喔");
  5570. }
  5571. },
  5572. getChapterData2(e, ic, type) {
  5573. e.stopPropagation();
  5574. this.updataC = true;
  5575. this.icc = ic;
  5576. if ((type == 2 || type == 3) && e.target.tagName !== "INPUT") {
  5577. console.log("还不能下载图片喔");
  5578. }
  5579. },
  5580. deleteChapterData(e, i, j, ic, taskI) {
  5581. e.stopPropagation();
  5582. this.unitJson[i].chapterInfo[j].taskJson[taskI].chapterData.splice(ic, 1);
  5583. },
  5584. deleteChapterData2(e, ic) {
  5585. e.stopPropagation();
  5586. this.sourcesData.splice(ic, 1);
  5587. },
  5588. updataVideoT(e, i, j, ic) {
  5589. e.stopPropagation();
  5590. this.unitJson[i].chapterInfo[j].taskJson[this.taskCount].chapterData[
  5591. ic
  5592. ].name = e.target.value;
  5593. },
  5594. updataVideoT2(e, ic) {
  5595. e.stopPropagation();
  5596. this.sourcesData[ic].name = e.target.value;
  5597. },
  5598. upCd(e, i, j, ic) {
  5599. e.stopPropagation();
  5600. if (ic == 0) {
  5601. return;
  5602. }
  5603. var a =
  5604. this.unitJson[i].chapterInfo[j].taskJson[this.taskCount].chapterData[
  5605. ic - 1
  5606. ];
  5607. this.unitJson[i].chapterInfo[j].taskJson[this.taskCount].chapterData[
  5608. ic - 1
  5609. ] =
  5610. this.unitJson[i].chapterInfo[j].taskJson[this.taskCount].chapterData[
  5611. ic
  5612. ];
  5613. this.unitJson[i].chapterInfo[j].taskJson[this.taskCount].chapterData[ic] =
  5614. a;
  5615. },
  5616. downCd(e, i, j, ic) {
  5617. e.stopPropagation();
  5618. if (
  5619. ic ==
  5620. this.unitJson[i].chapterInfo[j].taskJson[this.taskCount].chapterData
  5621. .length -
  5622. 1
  5623. ) {
  5624. return;
  5625. }
  5626. var a =
  5627. this.unitJson[i].chapterInfo[j].taskJson[this.taskCount].chapterData[
  5628. ic + 1
  5629. ];
  5630. this.unitJson[i].chapterInfo[j].taskJson[this.taskCount].chapterData[
  5631. ic + 1
  5632. ] =
  5633. this.unitJson[i].chapterInfo[j].taskJson[this.taskCount].chapterData[
  5634. ic
  5635. ];
  5636. this.unitJson[i].chapterInfo[j].taskJson[this.taskCount].chapterData[ic] =
  5637. a;
  5638. },
  5639. upCd2(e, ic) {
  5640. e.stopPropagation();
  5641. if (ic == 0) {
  5642. return;
  5643. }
  5644. var a = this.sourcesData[ic - 1];
  5645. this.sourcesData[ic - 1] = this.sourcesData[ic];
  5646. this.sourcesData[ic] = a;
  5647. this.$forceUpdate();
  5648. },
  5649. downCd2(e, ic) {
  5650. e.stopPropagation();
  5651. if (ic == this.sourcesData.length - 1) {
  5652. return;
  5653. }
  5654. var a = this.sourcesData[ic + 1];
  5655. this.sourcesData[ic + 1] = this.sourcesData[ic];
  5656. this.sourcesData[ic] = a;
  5657. this.$forceUpdate();
  5658. },
  5659. addWork() {
  5660. let cPan = 1;
  5661. for (var i = 0; i < this.unitJson.length; i++) {
  5662. for (
  5663. var j = 0;
  5664. j < this.unitJson[i].chapterInfo[0].taskJson.length;
  5665. j++
  5666. ) {
  5667. if (
  5668. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length > 1
  5669. ) {
  5670. for (
  5671. var z = 0;
  5672. z < this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length;
  5673. z++
  5674. ) {
  5675. if (
  5676. !this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[z].tool
  5677. .length
  5678. ) {
  5679. this.$message.error("请把工具添加完整");
  5680. cPan = 2;
  5681. break;
  5682. }
  5683. }
  5684. }
  5685. if (this.unitJson[i].chapterInfo[0].taskJson[j].eList) {
  5686. this.unitJson[i].chapterInfo[0].taskJson[j].eList = this.unitJson[
  5687. i
  5688. ].chapterInfo[0].taskJson[j].eList.filter((ele) => {
  5689. return ele.value != "";
  5690. });
  5691. }
  5692. }
  5693. }
  5694. if (cPan == 2) {
  5695. if (this.steps != 3) {
  5696. this.steps--;
  5697. }
  5698. return;
  5699. }
  5700. for (var i = 0; i < this.unitJson.length; i++) {
  5701. delete this.unitJson[i].isUpdate;
  5702. }
  5703. let params = [
  5704. {
  5705. uid: this.userid,
  5706. title: this.courseName.replace(/%/g, "%25"),
  5707. brief: this.courseText.replace(/%/g, "%25"),
  5708. cover:
  5709. this.cover.length > 0
  5710. ? JSON.stringify(this.cover)
  5711. : JSON.stringify([
  5712. {
  5713. name: "noBanner.jpg",
  5714. url: "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/wu1676621845022.png",
  5715. uid: 1656409780264,
  5716. status: "success",
  5717. },
  5718. ]),
  5719. evaId: this.evalua,
  5720. astudent:
  5721. this.checkboxList2.length > 0 ? this.checkboxList2.join(",") : "",
  5722. see: this.isTeacherSee == true ? 1 : 0,
  5723. chapters: JSON.stringify(this.unitJson).replaceAll(/%/g, "%25"),
  5724. template: this.cTemplate != "undefined" ? this.cTemplate : "",
  5725. courseType: JSON.stringify(this.courseTypeId),
  5726. ateacher:
  5727. this.checkboxList3.length > 0 ? this.checkboxList3.join(",") : "",
  5728. },
  5729. ];
  5730. this.ajax
  5731. .post(this.$store.state.api + "addCourseWorkNew22", params)
  5732. .then((res) => {
  5733. console.log(this.steps);
  5734. if (this.steps != 1 && this.steps != 2 && this.steps != 3) {
  5735. this.$message({
  5736. message: "新增成功",
  5737. type: "success",
  5738. });
  5739. }
  5740. this.number = res.data.ordernumber;
  5741. this.courseId = res.data.courseId;
  5742. this.cid = res.data.courseId;
  5743. this.courseUserid = this.userid;
  5744. this.islogin = true;
  5745. this.selectCourseDetail();
  5746. })
  5747. .catch((err) => {
  5748. this.$message.error("网络不佳");
  5749. console.error(err);
  5750. });
  5751. },
  5752. goCourse() {
  5753. window.parent.postMessage(
  5754. {
  5755. cid: this.courseId,
  5756. type: "1",
  5757. },
  5758. "*"
  5759. );
  5760. },
  5761. updateWork2() {
  5762. let _unitIndex = this.unitIndex;
  5763. let cPan = 1;
  5764. for (
  5765. var j = 0;
  5766. j < this.unitJson[_unitIndex].chapterInfo[0].taskJson.length;
  5767. j++
  5768. ) {
  5769. // if (
  5770. // !this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].task
  5771. // ) {
  5772. // this.$message.error("请填写任务名称");
  5773. // cPan = 2
  5774. // break;
  5775. // }
  5776. // if (
  5777. // !this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].people
  5778. // ) {
  5779. // this.$message.error("请填写负责人");
  5780. // cPan = 2
  5781. // break;
  5782. // }
  5783. // if (
  5784. // !this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].time
  5785. // ) {
  5786. // this.$message.error("请填写任务起止时间");
  5787. // cPan = 2
  5788. // break;
  5789. // }
  5790. if (this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList) {
  5791. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList =
  5792. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList.filter(
  5793. (ele) => {
  5794. return ele.value != "";
  5795. }
  5796. );
  5797. }
  5798. }
  5799. if (cPan == 2) {
  5800. if (this.steps != 3) {
  5801. if (this.type == 2 && this.steps == 5) {
  5802. this.steps == 3;
  5803. } else {
  5804. this.steps--;
  5805. }
  5806. }
  5807. return;
  5808. }
  5809. let params = [
  5810. {
  5811. cid: this.cid,
  5812. chapters: JSON.stringify(this.unitJson),
  5813. uid: this.userid,
  5814. unitIndex: _unitIndex,
  5815. },
  5816. ];
  5817. this.ajax
  5818. .post(this.$store.state.api + "updateStudentWorkNew4", params)
  5819. .then((res) => {
  5820. if (
  5821. this.steps != 1 &&
  5822. this.steps != 2 &&
  5823. this.steps != 3 &&
  5824. this.steps != 4
  5825. ) {
  5826. this.$message({
  5827. message: "修改成功",
  5828. type: "success",
  5829. });
  5830. }
  5831. this.courseId = this.cid;
  5832. })
  5833. .catch((err) => {
  5834. this.$message.error("网络不佳");
  5835. console.error(err);
  5836. });
  5837. },
  5838. updateWork() {
  5839. let cPan = 1;
  5840. for (var i = 0; i < this.unitJson.length; i++) {
  5841. for (
  5842. var j = 0;
  5843. j < this.unitJson[i].chapterInfo[0].taskJson.length;
  5844. j++
  5845. ) {
  5846. // if (
  5847. // !this.unitJson[i].chapterInfo[0].taskJson[j].task
  5848. // ) {
  5849. // this.$message.error("请填写任务名称");
  5850. // cPan = 2
  5851. // break;
  5852. // }
  5853. // if (
  5854. // !this.unitJson[i].chapterInfo[0].taskJson[j].people
  5855. // ) {
  5856. // this.$message.error("请填写负责人");
  5857. // cPan = 2
  5858. // break;
  5859. // }
  5860. // if (
  5861. // !this.unitJson[i].chapterInfo[0].taskJson[j].time
  5862. // ) {
  5863. // this.$message.error("请填写任务起止时间");
  5864. // cPan = 2
  5865. // break;
  5866. // }
  5867. if (this.unitJson[i].chapterInfo[0].taskJson[j].eList) {
  5868. this.unitJson[i].chapterInfo[0].taskJson[j].eList = this.unitJson[
  5869. i
  5870. ].chapterInfo[0].taskJson[j].eList.filter((ele) => {
  5871. return ele.value != "";
  5872. });
  5873. }
  5874. }
  5875. }
  5876. if (cPan == 2) {
  5877. if (this.steps != 3) {
  5878. this.steps--;
  5879. }
  5880. return;
  5881. }
  5882. for (var i = 0; i < this.unitJson.length; i++) {
  5883. delete this.unitJson[i].isUpdate;
  5884. }
  5885. let params = [
  5886. {
  5887. cid: this.cid,
  5888. title: this.courseName.replace(/%/g, "%25"),
  5889. brief: this.courseText.replace(/%/g, "%25"),
  5890. cover:
  5891. this.cover.length > 0
  5892. ? JSON.stringify(this.cover)
  5893. : JSON.stringify([
  5894. {
  5895. name: "noBanner.jpg",
  5896. url: "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/wu1676621845022.png",
  5897. uid: 1656409780264,
  5898. status: "success",
  5899. },
  5900. ]),
  5901. evaId: this.evalua,
  5902. astudent:
  5903. this.checkboxList2.length > 0 ? this.checkboxList2.join(",") : "",
  5904. see: this.isTeacherSee == true ? 1 : 0,
  5905. chapters: JSON.stringify(this.unitJson).replaceAll(/%/g, "%25"),
  5906. template: this.myWord != "undefined" ? this.myWord : [],
  5907. uid: this.userid,
  5908. courseType: JSON.stringify(this.courseTypeId),
  5909. ateacher:
  5910. this.checkboxList3.length > 0 ? this.checkboxList3.join(",") : "",
  5911. },
  5912. ];
  5913. this.ajax
  5914. .post(this.$store.state.api + "updateStudentWorkNew22", params)
  5915. .then((res) => {
  5916. if (
  5917. this.steps != 1 &&
  5918. this.steps != 2 &&
  5919. this.steps != 3 &&
  5920. this.steps != 4
  5921. ) {
  5922. if (this.cidttt == 1) {
  5923. this.$message({
  5924. message: "修改成功",
  5925. type: "success",
  5926. });
  5927. } else {
  5928. this.$message({
  5929. message: "新增成功",
  5930. type: "success",
  5931. });
  5932. }
  5933. }
  5934. this.checkboxListPeople = JSON.parse(
  5935. JSON.stringify(this.checkboxList3)
  5936. );
  5937. this.number = this.nbOrder;
  5938. this.courseId = this.cid;
  5939. })
  5940. .catch((err) => {
  5941. this.$message.error("网络不佳");
  5942. console.error(err);
  5943. });
  5944. },
  5945. guid() {
  5946. var _num,
  5947. i,
  5948. _guid = "";
  5949. for (i = 0; i < 32; i++) {
  5950. _guid += Math.floor(Math.random() * 16).toString(16); //随机0 - 16 的数字 转变为16进制的字符串
  5951. _num = Math.floor((i - 7) / 4); //计算 (i-7)除4
  5952. if (_num > -1 && _num < 4 && i == 7 + 4 * _num) {
  5953. //会使guid中间加 "-" 形式为xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
  5954. _guid += "-";
  5955. }
  5956. }
  5957. return _guid;
  5958. },
  5959. insertWord() {
  5960. this.dialogVisible1 = true;
  5961. this.updateBoolean2 = false;
  5962. this.tTitle = "";
  5963. this.tdetail = "";
  5964. },
  5965. addWord() {
  5966. this.unitJson[this.unitIndex].chapterInfo[0].fileList1.push({
  5967. name: this.tTitle,
  5968. content: this.tdetail,
  5969. uid: this.guid(),
  5970. });
  5971. this.dialogVisible1 = false;
  5972. },
  5973. upWord() { },
  5974. selectWord(uid, i, c) {
  5975. this.dialogVisible1 = true;
  5976. this.updateBoolean2 = true;
  5977. if (
  5978. uid == this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].uid
  5979. ) {
  5980. this.tTitle =
  5981. this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].name;
  5982. this.tdetail =
  5983. this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].content;
  5984. }
  5985. },
  5986. isAddPP() {
  5987. if (this.checkboxList.length > 0) {
  5988. this.$message({
  5989. message: "添加成功",
  5990. type: "success",
  5991. });
  5992. this.dialogVisible3 = false;
  5993. } else {
  5994. this.$message({
  5995. message: "请添加项目成员",
  5996. type: "error",
  5997. });
  5998. }
  5999. },
  6000. isAddClass() {
  6001. this.dialogVisibleClass = false;
  6002. },
  6003. isAddPPTeacher() {
  6004. this.dialogVisibleMember = false;
  6005. // let array = JSON.parse(JSON.stringify(this.checkboxList3))
  6006. // if (array.indexOf(this.courseUserid || this.userid) == -1) {
  6007. // array.push(this.courseUserid || this.userid)
  6008. // }
  6009. this.setMan();
  6010. },
  6011. isAddPPTcTeacher() {
  6012. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6013. this.taskCount
  6014. ].tcMember = this.tcMember;
  6015. this.dialogVisibleTcMember = false;
  6016. },
  6017. addTcMember(index) {
  6018. this.taskCount = index;
  6019. // this.searchTN = ""
  6020. let tcMember = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6021. index
  6022. ].tcMember
  6023. ? this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index].tcMember
  6024. : [];
  6025. const people =
  6026. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index].people;
  6027. let ManAarray = JSON.parse(JSON.stringify(this.ManAarray));
  6028. for (var i = 0; i < ManAarray.length; i++) {
  6029. if (ManAarray[i].userid === people) {
  6030. ManAarray.splice(i, 1);
  6031. }
  6032. }
  6033. this.tcMember = tcMember;
  6034. this.ManAarray2 = ManAarray;
  6035. // this.getTeacher();
  6036. this.dialogVisibleTcMember = true;
  6037. },
  6038. peopleChange(people, index) {
  6039. let tcMember = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6040. index
  6041. ].tcMember
  6042. ? this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index].tcMember
  6043. : [];
  6044. if (tcMember.indexOf(people) != -1) {
  6045. tcMember.splice(tcMember.indexOf(people), 1);
  6046. }
  6047. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index].tcMember =
  6048. tcMember;
  6049. },
  6050. getTemplate() {
  6051. let params = {
  6052. oid: this.oid,
  6053. };
  6054. this.ajax
  6055. .get(this.$store.state.api + "getCourseTemplateTs", params)
  6056. .then((res) => {
  6057. this.templateArray = res.data[0];
  6058. this.getTemplateOrg();
  6059. this.$forceUpdate();
  6060. })
  6061. .catch((err) => { });
  6062. },
  6063. getTemplateOrg() {
  6064. let params = {
  6065. oid: this.org,
  6066. };
  6067. this.ajax
  6068. .get(this.$store.state.api + "getCourseTemplateTs", params)
  6069. .then((res) => {
  6070. if (res.data[0].length) {
  6071. let ta = res.data[0].filter(el => {
  6072. return el.oid
  6073. });
  6074. this.templateArray = [...ta, ...this.templateArray];
  6075. this.templateArray = this.templateArray.sort(function (a, b) {
  6076. return b.create_at < a.create_at ? -1 : 1
  6077. })
  6078. }
  6079. this.$forceUpdate();
  6080. })
  6081. .catch((err) => { });
  6082. },
  6083. clearChoose() {
  6084. this.clearArray.splice(this.templateC.id, 1);
  6085. this.dialogVisible2 = false;
  6086. },
  6087. clearAttText() {
  6088. this.AttText = {
  6089. title: "",
  6090. text: "",
  6091. };
  6092. this.dialogVisible6 = false;
  6093. },
  6094. clearLine() {
  6095. this.line = "";
  6096. this.dialogVisible7 = false;
  6097. },
  6098. checkTemplate(res) {
  6099. let _this = this;
  6100. _this
  6101. .$confirm("确定选择此模板吗?", "提示", {
  6102. confirmButtonText: "确定",
  6103. cancelButtonText: "取消",
  6104. type: "warning",
  6105. })
  6106. .then(() => {
  6107. _this.unitJson = JSON.parse(res.chapters);
  6108. _this.steps++;
  6109. setTimeout(() => {
  6110. this.checkEva(this.checkId);
  6111. }, 1000);
  6112. })
  6113. .catch(() => {
  6114. return;
  6115. });
  6116. },
  6117. checkTemplate1(w) {
  6118. this.steps++;
  6119. },
  6120. checkTemplate2() {
  6121. let _this = this;
  6122. _this
  6123. .$confirm("确定选择空模板吗?", "提示", {
  6124. confirmButtonText: "确定",
  6125. cancelButtonText: "取消",
  6126. type: "warning",
  6127. })
  6128. .then(() => {
  6129. _this.unitJson = [
  6130. {
  6131. dyName: "", //单元标题
  6132. chapterInfo: [
  6133. {
  6134. isread: false,
  6135. chapterid: this.guid(),
  6136. title: "",
  6137. courseName: "",
  6138. taskJson: [
  6139. {
  6140. task: "",
  6141. people: "",
  6142. time: "",
  6143. taskDetail: "",
  6144. chapterData: [],
  6145. toolText: "",
  6146. toolChoose: [
  6147. {
  6148. tool: [],
  6149. toolDetail: "",
  6150. toolType: 0,
  6151. askCount: 1,
  6152. askTitle: "",
  6153. askJson: [
  6154. {
  6155. askstitle: "",
  6156. askItem: 1,
  6157. checkList: [],
  6158. },
  6159. ],
  6160. },
  6161. ],
  6162. toolArray: [],
  6163. isShowTools: false,
  6164. askCount: 1,
  6165. isFold: 0,
  6166. askTitle: "",
  6167. askJson: [
  6168. {
  6169. askstitle: "",
  6170. askItem: 1,
  6171. checkList: [],
  6172. },
  6173. ],
  6174. checkJson: [
  6175. {
  6176. checkCount: [],
  6177. checkPerent: [],
  6178. },
  6179. ],
  6180. homeworkList: [],
  6181. },
  6182. ],
  6183. itemCount: 1,
  6184. fileList1: [],
  6185. video: [],
  6186. testData: [],
  6187. pData: [],
  6188. templateArray: [],
  6189. },
  6190. ],
  6191. },
  6192. ];
  6193. this.steps++;
  6194. })
  6195. .catch(() => {
  6196. return;
  6197. });
  6198. },
  6199. wordNext() {
  6200. this.dialogVisible2 = false;
  6201. },
  6202. isAddOrUpdateAttText() {
  6203. if (this.AttTextType == 0) {
  6204. this.addAttTextMessage();
  6205. } else {
  6206. this.updateAttText();
  6207. }
  6208. },
  6209. isAddOrUpdateLine() {
  6210. if (!this.lineTitle) {
  6211. this.$message.error("请填写链接标题");
  6212. return;
  6213. }
  6214. if (this.lineType == 0) {
  6215. this.addLine();
  6216. } else {
  6217. this.updateLine();
  6218. }
  6219. },
  6220. addAttTextMessage() {
  6221. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6222. // this.taskCount
  6223. // ].chapterData.push({
  6224. // name: this.AttText.title,
  6225. // url: this.AttText.text,
  6226. // type: 6,
  6227. // });
  6228. // this.imgChange1(null, null, 6, this.taskCount);
  6229. // this.dialogVisible6 = false;
  6230. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount].toolArray.push({
  6231. // tool: 51,
  6232. // toolDetail: "",
  6233. // toolPhoto: "",
  6234. // toolEdit: false,
  6235. // toolId: this.guid(),
  6236. // toolData: {
  6237. // name: this.AttText.title,
  6238. // url: this.AttText.text,
  6239. // type: 6,
  6240. // }
  6241. // });
  6242. this.sourcesData.push({
  6243. name: this.AttText.title,
  6244. url: this.AttText.text,
  6245. type: 6,
  6246. });
  6247. this.dialogVisible6 = false;
  6248. // this.dialogVisibleSource = false;
  6249. },
  6250. selectAttText(itemTaskIndex, i) {
  6251. this.AttText.title =
  6252. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6253. itemTaskIndex
  6254. ].chapterData[i].name;
  6255. this.AttText.text =
  6256. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6257. itemTaskIndex
  6258. ].chapterData[i].url;
  6259. this.taskCount = itemTaskIndex;
  6260. this.AttTextIndex = i;
  6261. this.AttTextType = 1;
  6262. this.dialogVisible6 = true;
  6263. },
  6264. selectAttText2(i) {
  6265. this.AttText.title = this.sourcesData[i].name;
  6266. this.AttText.text = this.sourcesData[i].url;
  6267. this.AttTextIndex = i;
  6268. this.AttTextType = 1;
  6269. this.dialogVisible6 = true;
  6270. },
  6271. updateAttText() {
  6272. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6273. // this.taskCount
  6274. // ].chapterData[this.AttTextIndex].name = this.AttText.title;
  6275. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6276. // this.taskCount
  6277. // ].chapterData[this.AttTextIndex].url = this.AttText.text;
  6278. this.sourcesData[this.AttTextIndex].name = this.AttText.title;
  6279. this.sourcesData[this.AttTextIndex].url = this.AttText.text;
  6280. this.dialogVisible6 = false;
  6281. },
  6282. addLine() {
  6283. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6284. // this.lineCount
  6285. // ].chapterData.push({
  6286. // name: "链接",
  6287. // title: this.lineTitle,
  6288. // url: this.line,
  6289. // type: 8,
  6290. // });
  6291. // this.imgChange1(null, null, 8, this.lineCount);
  6292. // this.dialogVisible7 = false;
  6293. let src = "";
  6294. if (
  6295. this.line.indexOf("https://") == -1 &&
  6296. this.line.indexOf("http://") == -1
  6297. ) {
  6298. src = "https://" + this.line;
  6299. } else {
  6300. src = this.line;
  6301. }
  6302. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount].toolArray.push({
  6303. // tool: 51,
  6304. // toolDetail: "",
  6305. // toolPhoto: "",
  6306. // toolEdit: false,
  6307. // toolId: this.guid(),
  6308. // toolData: {
  6309. // name: "链接",
  6310. // // title: this.lineTitle,
  6311. // url: this.line,
  6312. // src: src,
  6313. // type: 8,
  6314. // }
  6315. // });
  6316. this.sourcesData.push({
  6317. name: "链接",
  6318. title: this.lineTitle,
  6319. url: this.line,
  6320. src: src,
  6321. type: 8,
  6322. });
  6323. this.dialogVisible7 = false;
  6324. // this.dialogVisibleSource = false;
  6325. },
  6326. selectLine(itemTaskIndex, i) {
  6327. this.line =
  6328. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6329. itemTaskIndex
  6330. ].chapterData[i].url;
  6331. this.lineTitle = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6332. itemTaskIndex
  6333. ].chapterData[i].title
  6334. ? this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6335. .chapterData[i].title
  6336. : "";
  6337. this.taskCount = itemTaskIndex;
  6338. this.lineCount = i;
  6339. this.lineType = 1;
  6340. this.dialogVisible7 = true;
  6341. },
  6342. selectLine2(i) {
  6343. this.line = this.sourcesData[i].url;
  6344. this.lineTitle = this.sourcesData[i].title
  6345. ? this.sourcesData[i].title
  6346. : "";
  6347. this.lineCount = i;
  6348. this.lineType = 1;
  6349. this.dialogVisible7 = true;
  6350. },
  6351. updateLine() {
  6352. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6353. // this.taskCount
  6354. // ].chapterData[this.lineCount].url = this.line;
  6355. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6356. // this.taskCount
  6357. // ].chapterData[this.lineCount].title = this.lineTitle;
  6358. if (!this.lineTitle) {
  6359. this.$message.error("请填写链接标题");
  6360. return;
  6361. }
  6362. this.sourcesData[this.lineCount].url = this.line;
  6363. this.sourcesData[this.lineCount].title = this.lineTitle;
  6364. this.dialogVisible7 = false;
  6365. },
  6366. addPP() {
  6367. this.dialogVisible3 = true;
  6368. },
  6369. goTo(path) {
  6370. this.$router.push(path);
  6371. },
  6372. openTools(itemTaskIndex, i, toolIndex) {
  6373. this.toolIndex = toolIndex;
  6374. this.taskCount = itemTaskIndex;
  6375. if (i == 4) {
  6376. if (toolIndex == null) {
  6377. var a =
  6378. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6379. .chapterData;
  6380. for (var i = 0; i < a.length; i++) {
  6381. if (a[i].url == 4 && a[i].askJson.askTitle != "") {
  6382. this.askJson =
  6383. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6384. itemTaskIndex
  6385. ].chapterData[i].askJson;
  6386. }
  6387. }
  6388. } else {
  6389. this.askJson = JSON.parse(
  6390. JSON.stringify(
  6391. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6392. itemTaskIndex
  6393. ].toolChoose[toolIndex]
  6394. )
  6395. );
  6396. }
  6397. this.dialogVisible5 = true;
  6398. } else if (i == 45) {
  6399. if (
  6400. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6401. .toolChoose[toolIndex].testJson
  6402. ) {
  6403. this.testJson = JSON.parse(
  6404. JSON.stringify(
  6405. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6406. itemTaskIndex
  6407. ].toolChoose[toolIndex].testJson
  6408. )
  6409. );
  6410. } else {
  6411. var testJson = {
  6412. testCount: 1,
  6413. testTitle: "",
  6414. testJson: [
  6415. {
  6416. teststitle: "",
  6417. testItem: 1,
  6418. checkList: [],
  6419. answer: [],
  6420. type: "1",
  6421. },
  6422. ],
  6423. };
  6424. this.testJson = testJson;
  6425. }
  6426. this.dialogVisibleChoice = true;
  6427. } else if (i == 47) {
  6428. if (
  6429. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6430. .toolChoose[toolIndex].sentenceList
  6431. ) {
  6432. this.sentenceList = JSON.parse(
  6433. JSON.stringify(
  6434. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6435. itemTaskIndex
  6436. ].toolChoose[toolIndex].sentenceList
  6437. )
  6438. );
  6439. } else {
  6440. var sentenceList = [
  6441. {
  6442. sentenceTitle: "",
  6443. addSentence: [],
  6444. rightAnswer: [],
  6445. },
  6446. ];
  6447. this.sentenceList = sentenceList;
  6448. }
  6449. this.dialogVisibleSentence = true;
  6450. } else if (i == 48) {
  6451. if (
  6452. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6453. .toolChoose[toolIndex].tableJson
  6454. ) {
  6455. this.tableJson = JSON.parse(
  6456. JSON.stringify(
  6457. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6458. itemTaskIndex
  6459. ].toolChoose[toolIndex].tableJson
  6460. )
  6461. );
  6462. } else {
  6463. var tableJson = {
  6464. text: "",
  6465. };
  6466. this.tableJson = tableJson;
  6467. }
  6468. this.dialogVisibleTable = true;
  6469. } else if (i == 49) {
  6470. if (
  6471. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6472. .toolChoose[toolIndex].groupJson
  6473. ) {
  6474. this.groupJson = JSON.parse(
  6475. JSON.stringify(
  6476. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6477. itemTaskIndex
  6478. ].toolChoose[toolIndex].groupJson
  6479. )
  6480. );
  6481. } else {
  6482. var groupJson = {
  6483. group: [
  6484. {
  6485. name: "第1组",
  6486. },
  6487. ],
  6488. number: undefined,
  6489. islock: 1,
  6490. };
  6491. this.groupJson = groupJson;
  6492. }
  6493. this.dialogVisibleGroup = true;
  6494. } else if (i == 15) {
  6495. this.answerQ = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6496. itemTaskIndex
  6497. ].toolChoose[toolIndex].answerQ
  6498. ? JSON.parse(
  6499. JSON.stringify(
  6500. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6501. itemTaskIndex
  6502. ].toolChoose[toolIndex].answerQ
  6503. )
  6504. )
  6505. : "";
  6506. this.dialogVisible8 = true;
  6507. } else if (i == 40) {
  6508. this.rateJson = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6509. itemTaskIndex
  6510. ].toolChoose[toolIndex].rateJson
  6511. ? JSON.parse(
  6512. JSON.stringify(
  6513. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6514. itemTaskIndex
  6515. ].toolChoose[toolIndex].rateJson
  6516. )
  6517. )
  6518. : [
  6519. {
  6520. detail: "",
  6521. score: 5,
  6522. value: "",
  6523. },
  6524. ]; //{detail:"",score:5,value:""}
  6525. this.selectSteps = 1;
  6526. this.dialogVisibleRate = true;
  6527. } else if (i == 42) {
  6528. this.answerQ = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6529. itemTaskIndex
  6530. ].toolChoose[toolIndex].answerQ
  6531. ? JSON.parse(
  6532. JSON.stringify(
  6533. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6534. itemTaskIndex
  6535. ].toolChoose[toolIndex].answerQ
  6536. )
  6537. )
  6538. : "";
  6539. this.dialogVisibleMp3 = true;
  6540. } else if (i == 41) {
  6541. this.selectJson = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6542. itemTaskIndex
  6543. ].toolChoose[toolIndex].selectJson
  6544. ? JSON.parse(
  6545. JSON.stringify(
  6546. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6547. itemTaskIndex
  6548. ].toolChoose[toolIndex].selectJson
  6549. )
  6550. )
  6551. : {
  6552. url: "",
  6553. select: [],
  6554. answer: [],
  6555. };
  6556. this.selectSteps = 1;
  6557. this.dialogVisibleSelect = true;
  6558. }
  6559. },
  6560. chapAddTools(i) {
  6561. if (this.chapTools[0].tools.length == 0) {
  6562. this.chapTools[0].tools.push(i);
  6563. } else {
  6564. if (this.chapTools[0].tools.indexOf(i) != -1) {
  6565. this.chapTools[0].tools.splice(this.chapTools[0].tools.indexOf(i), 1);
  6566. } else {
  6567. this.chapTools[0].tools.push(i);
  6568. }
  6569. }
  6570. this.$forceUpdate();
  6571. },
  6572. addChaptersDataTools() {
  6573. if (this.chapTools[0].tools.indexOf(4) != -1) {
  6574. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6575. this.chapCount
  6576. ].chapterData.push({
  6577. name: this.chapTools[0].toolDetail,
  6578. url: this.chapTools[0].tools,
  6579. type: 7,
  6580. askJson: this.askJson,
  6581. });
  6582. } else {
  6583. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6584. this.chapCount
  6585. ].chapterData.push({
  6586. name: this.chapTools[0].toolDetail,
  6587. url: this.chapTools[0].tools,
  6588. type: 7,
  6589. });
  6590. }
  6591. this.imgChange1(null, null, 7, this.chapCount);
  6592. this.dialogVisible4 = false;
  6593. },
  6594. addTools(i, itemTaskIndex, toolIndex) {
  6595. // if (
  6596. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6597. // .toolChoose[toolIndex].tool.length == 0
  6598. // ) {
  6599. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6600. // itemTaskIndex
  6601. // ].toolChoose[toolIndex].tool.push(i);
  6602. // } else {
  6603. // if (
  6604. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6605. // itemTaskIndex
  6606. // ].toolChoose[toolIndex].tool.indexOf(i) != -1
  6607. // ) {
  6608. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6609. // itemTaskIndex
  6610. // ].toolChoose[toolIndex].tool.splice(
  6611. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6612. // itemTaskIndex
  6613. // ].toolChoose[toolIndex].tool.indexOf(i),
  6614. // 1
  6615. // );
  6616. // } else {
  6617. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6618. // itemTaskIndex
  6619. // ].toolChoose[toolIndex].tool.push(i);
  6620. // }
  6621. // console.log(
  6622. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6623. // .toolChoose[toolIndex].tool
  6624. // );
  6625. // }
  6626. if (i == 4) {
  6627. if (
  6628. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6629. .toolChoose[toolIndex].askJson.askTitle == "" ||
  6630. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6631. .toolChoose[toolIndex].askJson[0].askstitle == "" ||
  6632. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6633. .toolChoose[toolIndex].askJson[0].checkList < 2
  6634. ) {
  6635. this.openTools(itemTaskIndex, 4, toolIndex);
  6636. // this.$message({
  6637. // message: "请填写完整问卷内容",
  6638. // type: "error",
  6639. // });
  6640. return;
  6641. }
  6642. }
  6643. if (i == 45) {
  6644. if (
  6645. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6646. .toolChoose[toolIndex].testJson ||
  6647. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6648. .toolChoose[toolIndex].testJson.testJson[0].teststitle == "" ||
  6649. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6650. .toolChoose[toolIndex].testJson.testJson[0].checkList < 2
  6651. ) {
  6652. this.openTools(itemTaskIndex, 45, toolIndex);
  6653. // this.$message({
  6654. // message: "请填写完整问卷内容",
  6655. // type: "error",
  6656. // });
  6657. return;
  6658. }
  6659. }
  6660. if (i == 47) {
  6661. if (
  6662. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6663. .toolChoose[toolIndex].sentenceList ||
  6664. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6665. .toolChoose[toolIndex].sentenceList[0].rightAnswer == 0
  6666. ) {
  6667. this.openTools(itemTaskIndex, 47, toolIndex);
  6668. return;
  6669. }
  6670. }
  6671. if (i == 48) {
  6672. if (
  6673. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6674. .toolChoose[toolIndex].tableJson
  6675. ) {
  6676. this.openTools(itemTaskIndex, 48, toolIndex);
  6677. return;
  6678. }
  6679. }
  6680. if (i == 49) {
  6681. if (
  6682. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6683. .toolChoose[toolIndex].groupJson
  6684. ) {
  6685. this.openTools(itemTaskIndex, 49, toolIndex);
  6686. return;
  6687. }
  6688. }
  6689. if (i == 15) {
  6690. if (
  6691. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6692. .toolChoose[toolIndex].answerQ ||
  6693. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6694. .toolChoose[toolIndex].answerQ == ""
  6695. ) {
  6696. this.openTools(itemTaskIndex, 15, toolIndex);
  6697. // this.$message({
  6698. // message: "请填写问答内容",
  6699. // type: "error",
  6700. // });
  6701. return;
  6702. }
  6703. }
  6704. if (i == 40) {
  6705. if (
  6706. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6707. .toolChoose[toolIndex].rateJson ||
  6708. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6709. .toolChoose[toolIndex].rateJson.length
  6710. ) {
  6711. this.openTools(itemTaskIndex, 40, toolIndex);
  6712. return;
  6713. }
  6714. }
  6715. if (i == 41) {
  6716. if (
  6717. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6718. .toolChoose[toolIndex].selectJson ||
  6719. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6720. .toolChoose[toolIndex].selectJson.url == "" ||
  6721. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6722. .toolChoose[toolIndex].selectJson.select.length ||
  6723. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6724. .toolChoose[toolIndex].selectJson.answer.length
  6725. ) {
  6726. this.openTools(itemTaskIndex, 41, toolIndex);
  6727. return;
  6728. }
  6729. }
  6730. if (i == 42) {
  6731. if (
  6732. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6733. .toolChoose[toolIndex].answerQ ||
  6734. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6735. .toolChoose[toolIndex].answerQ == ""
  6736. ) {
  6737. this.openTools(itemTaskIndex, 42, toolIndex);
  6738. return;
  6739. }
  6740. }
  6741. if (
  6742. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6743. .toolChoose[toolIndex].tool.length > 0
  6744. ) {
  6745. if (
  6746. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6747. itemTaskIndex
  6748. ].toolChoose[toolIndex].tool.indexOf(i) != -1
  6749. ) {
  6750. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6751. itemTaskIndex
  6752. ].toolChoose[toolIndex].tool.splice(
  6753. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6754. itemTaskIndex
  6755. ].toolChoose[toolIndex].tool.indexOf(i),
  6756. 1
  6757. );
  6758. } else {
  6759. // this.$message({
  6760. // message: "每个工具只能添加一个",
  6761. // type: "error",
  6762. // });
  6763. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6764. itemTaskIndex
  6765. ].toolChoose[toolIndex].tool = [];
  6766. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6767. itemTaskIndex
  6768. ].toolChoose[toolIndex].tool.push(i);
  6769. }
  6770. } else {
  6771. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6772. itemTaskIndex
  6773. ].toolChoose[toolIndex].tool.push(i);
  6774. }
  6775. this.$forceUpdate();
  6776. },
  6777. addAskList() {
  6778. this.askJson.askJson.push({
  6779. askstitle: "",
  6780. askItem: 1,
  6781. checkList: [],
  6782. });
  6783. this.askJson.askCount++;
  6784. },
  6785. addTestList() {
  6786. this.testJson.testJson.push({
  6787. teststitle: "",
  6788. testItem: 1,
  6789. checkList: [],
  6790. answer: [],
  6791. type: "1",
  6792. });
  6793. this.testJson.testCount++;
  6794. },
  6795. deleteAskList(index) {
  6796. this.askJson.askJson.splice(index, 1);
  6797. this.askJson.askCount--;
  6798. },
  6799. deleteTestList(index) {
  6800. this.testJson.testJson.splice(index, 1);
  6801. this.testJson.testCount--;
  6802. },
  6803. addcheckList(json) {
  6804. json.checkList.length++;
  6805. json.askItem++;
  6806. },
  6807. deletecheckList(json) {
  6808. json.checkList.length--;
  6809. json.askItem--;
  6810. },
  6811. addTcheckList(json) {
  6812. json.checkList.length++;
  6813. json.testItem++;
  6814. },
  6815. deleteTcheckList(json) {
  6816. json.checkList.length--;
  6817. json.testItem--;
  6818. },
  6819. checkTestType(type, json) {
  6820. json.type = type;
  6821. json.answer = [];
  6822. },
  6823. addSelectList(json) {
  6824. json.select.push("");
  6825. json.answer.push("");
  6826. },
  6827. deleteSelectList(json) {
  6828. // json.select.length--;
  6829. // json.answer.length--;
  6830. json.select.splice(json.select.length - 1, 1);
  6831. json.answer.splice(json.answer.length - 1, 1);
  6832. },
  6833. addAsk() {
  6834. if (this.askJson.askTitle === "") {
  6835. this.$message.error("标题不能为空!");
  6836. return;
  6837. }
  6838. var aj = this.askJson.askJson;
  6839. var b = 1;
  6840. for (var i = 0; i < aj.length; i++) {
  6841. if (aj[i].askstitle === "") {
  6842. var a = 1;
  6843. for (let index = 0; index < aj[i].askItem; index++) {
  6844. const element = aj[i].checkList[index]
  6845. ? aj[i].checkList[index]
  6846. : "";
  6847. if (element != "") {
  6848. b++;
  6849. this.$message.error(`请将题目${i + 1}填写完整。`);
  6850. return;
  6851. } else {
  6852. a++;
  6853. }
  6854. }
  6855. if (b == 1) {
  6856. this.$message.error("至少填写一个问题");
  6857. return;
  6858. }
  6859. } else if (aj[i].askstitle != "") {
  6860. for (let index = 0; index < aj[i].askItem; index++) {
  6861. const element = aj[i].checkList[index]
  6862. ? aj[i].checkList[index]
  6863. : "";
  6864. var index = 0;
  6865. for (var z = 0; z < aj[i].checkList.length; z++) {
  6866. var checkC = aj[i].checkList[z] ? aj[i].checkList[z] : "";
  6867. if (checkC != "") {
  6868. index++;
  6869. } else {
  6870. this.$message.error(`题目${i + 1}选项不能为空!`);
  6871. return;
  6872. }
  6873. }
  6874. b++;
  6875. if (index < 2) {
  6876. this.$message.error("填写了的题目,选项至少要有两项!");
  6877. return;
  6878. }
  6879. }
  6880. }
  6881. }
  6882. this.askJson.askJson = this.askJson.askJson.filter((el) => {
  6883. var elc = el.checkList.filter((element) => {
  6884. return element != "";
  6885. });
  6886. return el.askstitle != "" && elc.length != 0;
  6887. });
  6888. this.dialogVisibleTool = false;
  6889. this.dialogVisibleVote = false;
  6890. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6891. this.taskCount
  6892. ].toolArray.push({
  6893. tool: 56,
  6894. toolDetail: "",
  6895. toolPhoto: "",
  6896. toolEdit: false,
  6897. toolId: this.guid(),
  6898. askJson: JSON.parse(JSON.stringify(this.askJson)),
  6899. });
  6900. this.setPeople(this.unitIndex, this.taskCount, this.userid);
  6901. },
  6902. addTest() {
  6903. // if (this.testJson.testTitle === "") {
  6904. // this.$message.error("标题不能为空!");
  6905. // return;
  6906. // }
  6907. var aj = this.testJson.testJson;
  6908. var b = 1;
  6909. for (var i = 0; i < aj.length; i++) {
  6910. if (aj[i].teststitle === "") {
  6911. var a = 1;
  6912. for (let index = 0; index < aj[i].testItem; index++) {
  6913. const element = aj[i].checkList[index]
  6914. ? aj[i].checkList[index]
  6915. : "";
  6916. if (element != "") {
  6917. b++;
  6918. this.$message.error(`请将题目${i + 1}填写完整。`);
  6919. return;
  6920. } else {
  6921. a++;
  6922. }
  6923. }
  6924. if (b == 1) {
  6925. this.$message.error("至少填写一个问题");
  6926. return;
  6927. }
  6928. } else if (aj[i].teststitle != "") {
  6929. for (let index = 0; index < aj[i].testItem; index++) {
  6930. const element = aj[i].checkList[index]
  6931. ? aj[i].checkList[index]
  6932. : "";
  6933. var index = 0;
  6934. for (var z = 0; z < aj[i].checkList.length; z++) {
  6935. var checkC = aj[i].checkList[z] ? aj[i].checkList[z] : "";
  6936. if (checkC != "") {
  6937. index++;
  6938. } else {
  6939. this.$message.error(`题目${i + 1}选项不能为空!`);
  6940. return;
  6941. }
  6942. }
  6943. b++;
  6944. if (index < 2) {
  6945. this.$message.error("填写了的题目,选项至少要有两项!");
  6946. return;
  6947. }
  6948. if (
  6949. (aj[i].type == "2" && !aj[i].answer.length) ||
  6950. (aj[i].type == "1" && aj[i].answer !== 0 && !aj[i].answer)
  6951. ) {
  6952. this.$message.error("有题目未选择答案请选择答案");
  6953. return;
  6954. }
  6955. }
  6956. }
  6957. }
  6958. this.testJson.testJson = this.testJson.testJson.filter((el) => {
  6959. var elc = el.checkList.filter((element) => {
  6960. return element != "";
  6961. });
  6962. return el.teststitle != "" && elc.length != 0;
  6963. });
  6964. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6965. this.taskCount
  6966. ].toolChoose[this.toolIndex].testJson = this.testJson;
  6967. this.dialogVisibleChoice = false;
  6968. if (
  6969. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  6970. .toolChoose[this.toolIndex].tool != 45
  6971. ) {
  6972. this.addTools(45, this.taskCount, this.toolIndex);
  6973. }
  6974. },
  6975. addAnswer() {
  6976. if (this.answerQ == "") {
  6977. this.$message.error("请输入您想要问的问题");
  6978. return;
  6979. }
  6980. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6981. // this.taskCount
  6982. // ].toolChoose[this.toolIndex].answerQ = this.answerQ;
  6983. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6984. this.taskCount
  6985. ].toolArray.push({
  6986. tool: 15,
  6987. toolDetail: "",
  6988. toolPhoto: "",
  6989. toolEdit: false,
  6990. toolId: this.guid(),
  6991. answerQ: this.answerQ,
  6992. });
  6993. this.setPeople(this.unitIndex, this.taskCount, this.userid);
  6994. this.$forceUpdate();
  6995. this.dialogVisibleTool = false;
  6996. this.dialogVisible8 = false;
  6997. // if (
  6998. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  6999. // .toolChoose[this.toolIndex].tool != 15
  7000. // ) {
  7001. // this.addTools(15, this.taskCount, this.toolIndex);
  7002. // }
  7003. },
  7004. addText() {
  7005. if (this.tableJson.text == "" || this.tableJson.text == "<p></p>") {
  7006. this.$message.error("请填写信息!");
  7007. return;
  7008. }
  7009. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7010. this.taskCount
  7011. ].toolArray.push({
  7012. tool: 52,
  7013. toolDetail: "",
  7014. toolPhoto: "",
  7015. toolEdit: false,
  7016. toolId: this.guid(),
  7017. text: this.tableJson.text,
  7018. });
  7019. this.setPeople(this.unitIndex, this.taskCount, this.userid);
  7020. this.$forceUpdate();
  7021. this.dialogVisibleTool = false;
  7022. this.dialogVisibleText = false;
  7023. setTimeout(() => {
  7024. // this.openToolFun(52, this.taskCount, this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7025. // this.taskCount
  7026. // ].toolArray.length-1)
  7027. this.toolIndex =
  7028. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  7029. .toolArray.length - 1;
  7030. this.addTextJson();
  7031. }, 500);
  7032. // if (
  7033. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  7034. // .toolChoose[this.toolIndex].tool != 15
  7035. // ) {
  7036. // this.addTools(15, this.taskCount, this.toolIndex);
  7037. // }
  7038. },
  7039. addTable() {
  7040. if (this.tableJson.text == "" || this.tableJson.text == "<p></p>") {
  7041. this.$message.error("请填写信息!");
  7042. return;
  7043. }
  7044. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7045. this.taskCount
  7046. ].toolArray.push({
  7047. tool: 48,
  7048. toolDetail: "",
  7049. toolPhoto: "",
  7050. toolEdit: false,
  7051. toolId: this.guid(),
  7052. table: this.tableJson.text,
  7053. });
  7054. this.setPeople(this.unitIndex, this.taskCount, this.userid);
  7055. this.$forceUpdate();
  7056. this.dialogVisibleTool = false;
  7057. this.dialogVisibleTable1 = false;
  7058. setTimeout(() => {
  7059. // this.openToolFun(48, this.taskCount, this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7060. // this.taskCount
  7061. // ].toolArray.length-1)
  7062. this.toolIndex =
  7063. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  7064. .toolArray.length - 1;
  7065. this.addTableJson();
  7066. }, 500);
  7067. // if (
  7068. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  7069. // .toolChoose[this.toolIndex].tool != 15
  7070. // ) {
  7071. // this.addTools(15, this.taskCount, this.toolIndex);
  7072. // }
  7073. },
  7074. addMp3Answer() {
  7075. if (this.answerQ == "") {
  7076. this.$message.error("请输入您想要回答的问题");
  7077. return;
  7078. }
  7079. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7080. this.taskCount
  7081. ].toolChoose[this.toolIndex].answerQ = this.answerQ;
  7082. this.dialogVisibleMp3 = false;
  7083. },
  7084. addRateAnswer() {
  7085. var a = 1;
  7086. for (var i = 0; i < this.rateJson.length; i++) {
  7087. if (this.rateJson[i].value == "") {
  7088. a = 2;
  7089. break;
  7090. }
  7091. }
  7092. if (a == 2) {
  7093. this.$message.error("请把评价信息填写完整");
  7094. return;
  7095. }
  7096. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7097. this.taskCount
  7098. ].toolChoose[this.toolIndex].rateJson = this.rateJson;
  7099. this.dialogVisibleRate = false;
  7100. if (
  7101. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  7102. .toolChoose[this.toolIndex].tool != 40
  7103. ) {
  7104. this.addTools(40, this.taskCount, this.toolIndex);
  7105. }
  7106. },
  7107. addSelectAnswer() {
  7108. if (this.selectJson.url == "") {
  7109. this.$message.error("请上传题目");
  7110. return;
  7111. }
  7112. if (!this.selectJson.select.length) {
  7113. this.$message.error("请添加选项");
  7114. return;
  7115. }
  7116. if (!this.selectJson.answer.length) {
  7117. this.$message.error("请设置答案");
  7118. return;
  7119. }
  7120. var a = 1;
  7121. for (var i = 0; i < this.selectJson.answer.length; i++) {
  7122. if (!this.selectJson.answer[i] && this.selectJson.answer[i] !== 0) {
  7123. a = 2;
  7124. }
  7125. }
  7126. if (a == 2) {
  7127. this.$message.error("请设置答案");
  7128. return;
  7129. }
  7130. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7131. this.taskCount
  7132. ].toolChoose[this.toolIndex].selectJson = this.selectJson;
  7133. this.dialogVisibleSelect = false;
  7134. if (
  7135. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  7136. .toolChoose[this.toolIndex].tool != 41
  7137. ) {
  7138. this.addTools(41, this.taskCount, this.toolIndex);
  7139. }
  7140. },
  7141. nextSelectSteps() {
  7142. if (this.selectJson.url == "") {
  7143. this.$message.error("请上传题目");
  7144. return;
  7145. }
  7146. if (!this.selectJson.select.length) {
  7147. this.$message.error("请添加选项");
  7148. return;
  7149. }
  7150. var a = 1;
  7151. for (var i = 0; i < this.selectJson.select.length; i++) {
  7152. if (!this.selectJson.select[i]) {
  7153. a = 2;
  7154. }
  7155. }
  7156. if (a == 2) {
  7157. this.$message.error("添加的选项不能为空");
  7158. return;
  7159. }
  7160. this.selectSteps++;
  7161. },
  7162. selectCourseDetail() {
  7163. if (this.cid == "" || this.cid == undefined) {
  7164. console.log("这是新增项目");
  7165. this.selectAllType();
  7166. this.cidttt = 0;
  7167. } else {
  7168. this.cidType = 1;
  7169. let params = {
  7170. cid: this.cid,
  7171. };
  7172. this.ajax
  7173. .get(this.$store.state.api + "select_student_course_detail2", params)
  7174. .then((res) => {
  7175. this.loading = true;
  7176. this.unitJson = JSON.parse(res.data[0][0].chapters);
  7177. for (var j in this.unitJson) {
  7178. for (var i in this.unitJson[j].chapterInfo) {
  7179. this.unitJson[j].chapterInfo[i].taskJson[
  7180. this.taskCount
  7181. ].toolChoose = this.unitJson[j].chapterInfo[i].taskJson[
  7182. this.taskCount
  7183. ].toolChoose
  7184. ? this.unitJson[j].chapterInfo[i].taskJson[this.taskCount]
  7185. .toolChoose
  7186. : [];
  7187. for (var k in this.unitJson[j].chapterInfo[i].taskJson) {
  7188. let _chapterData = [];
  7189. for (var c in this.unitJson[j].chapterInfo[i].taskJson[k]
  7190. .chapterData) {
  7191. if (
  7192. this.unitJson[j].chapterInfo[i].taskJson[k].chapterData[c]
  7193. ) {
  7194. _chapterData.push(
  7195. this.unitJson[j].chapterInfo[i].taskJson[k].chapterData[
  7196. c
  7197. ]
  7198. );
  7199. }
  7200. }
  7201. this.unitJson[j].chapterInfo[i].taskJson[k].chapterData =
  7202. _chapterData;
  7203. let _task = this.unitJson[j].chapterInfo[i].taskJson[k].toolArray
  7204. for (var _tool = 0; _tool < _task.length; _tool++) {
  7205. delete _task[_tool].proVisible
  7206. }
  7207. }
  7208. }
  7209. }
  7210. this.courseName = res.data[0][0].title;
  7211. this.courseText = res.data[0][0].brief;
  7212. this.evalua = res.data[0][0].evaId;
  7213. this.cover = JSON.parse(res.data[0][0].cover);
  7214. this.noneBtnImg = this.cover.length >= 1;
  7215. // this.checkboxList =
  7216. // res.data[0][0].course_student.length > 0
  7217. // ? JSON.parse(res.data[0][0].course_student)
  7218. // : [];
  7219. this.checkboxList2 = res.data[0][0].juri
  7220. ? res.data[0][0].juri.split(",")
  7221. : [];
  7222. this.checkboxList3 = res.data[0][0].course_teacher
  7223. ? res.data[0][0].course_teacher.split(",")
  7224. : [];
  7225. this.checkboxListPeople = res.data[0][0].course_teacher
  7226. ? res.data[0][0].course_teacher.split(",")
  7227. : [];
  7228. // this.isTeacherSee =
  7229. // res.data[0][0].is_teacher_look == 0 ? true : false;
  7230. this.isTeacherSee = res.data[0][0].open == 1 ? true : false;
  7231. this.myWord = res.data[0][0].template;
  7232. this.templateC.id = "123";
  7233. this.courseUserid = res.data[0][0].userid;
  7234. this.nbOrder = res.data[0][0].ordernumber;
  7235. if (res.data[1].length) {
  7236. this.courseTypeId = [];
  7237. for (var i = 0; i < res.data[1].length; i++) {
  7238. this.courseTypeId.push(res.data[1][i].typeid);
  7239. }
  7240. }
  7241. console.log(this.courseTypeId);
  7242. // if (this.timer) clearInterval(this.timer);
  7243. if (this.timer) clearTimeout(this.timer);
  7244. this.timer = null;
  7245. // this.timer = setInterval(() => {
  7246. this.seleteCourseUpdate();
  7247. this.setMan();
  7248. this.selectAllType();
  7249. // }, 5000);
  7250. this.$forceUpdate();
  7251. setTimeout(() => {
  7252. this.checkEva(this.evalua);
  7253. }, 0);
  7254. })
  7255. .catch((err) => {
  7256. console.error(err);
  7257. });
  7258. }
  7259. },
  7260. seleteCourseUpdate() {
  7261. let params = {
  7262. cid: this.cid,
  7263. };
  7264. this.ajax
  7265. .get(this.$store.state.api + "select_student_course_detail", params)
  7266. .then((res) => {
  7267. console.log(res.data[2]);
  7268. let unitJson = this.unitJson;
  7269. let works = res.data[2];
  7270. for (var i = 0; i < unitJson.length; i++) {
  7271. let task = unitJson[i].chapterInfo[0].taskJson;
  7272. for (var j = 0; j < task.length; j++) {
  7273. var tool = task[j].toolArray;
  7274. for (var z = 0; z < tool.length; z++) {
  7275. let _tool = tool[z];
  7276. _tool.toolPhoto = [];
  7277. _tool.people = [];
  7278. this.checkJson[z] = [];
  7279. let checkPeople = 0;
  7280. for (var k = 0; k < works.length; k++) {
  7281. let _work = works[k];
  7282. if (
  7283. _work.stage == i &&
  7284. _work.task == j &&
  7285. _work.tool == z &&
  7286. _work.atool == _tool.tool
  7287. ) {
  7288. if (_tool.tool == 48 || _tool.tool == 52) {
  7289. _tool.toolPhoto[0] = _work;
  7290. if (_tool.people.indexOf(_work.username) == -1) {
  7291. _tool.people.push(_work.username);
  7292. }
  7293. } else {
  7294. _tool.toolPhoto.push(_work);
  7295. }
  7296. if (_tool.tool == 56) {
  7297. checkPeople++;
  7298. var checkL = JSON.parse(_work.content);
  7299. for (var kz = 0; kz < checkL.length; kz++) {
  7300. if (!this.checkJson[z][kz]) {
  7301. this.checkJson[z].push({
  7302. checkCount: [],
  7303. checkPerson: [],
  7304. rightPerson: [],
  7305. });
  7306. }
  7307. if (!this.checkJson[z][kz].checkCount.length) {
  7308. this.checkJson[z][kz].checkCount = [];
  7309. let _askItemCount = _tool.askJson.askJson[kz].askItem;
  7310. for (var aic = 0; aic < _askItemCount; aic++) {
  7311. this.checkJson[z][kz].checkCount.push(0);
  7312. }
  7313. }
  7314. this.checkJson[z][kz].checkPerson[parseInt(checkL[kz])]
  7315. ? this.checkJson[z][kz].checkPerson[
  7316. parseInt(checkL[kz])
  7317. ].push(_work.username)
  7318. : (this.checkJson[z][kz].checkPerson[
  7319. parseInt(checkL[kz])
  7320. ] = [_work.username]);
  7321. this.checkJson[z][kz].checkCount[parseInt(checkL[kz])]
  7322. ? this.checkJson[z][kz].checkCount[
  7323. parseInt(checkL[kz])
  7324. ]++
  7325. : (this.checkJson[z][kz].checkCount[
  7326. parseInt(checkL[kz])
  7327. ] = 1);
  7328. }
  7329. }
  7330. }
  7331. }
  7332. for (var kz = 0; kz < this.checkJson[z].length; kz++) {
  7333. this.checkJson[z][kz].checkPerent = [];
  7334. let aaaa = this.checkJson[z][kz];
  7335. console.log(aaaa);
  7336. for (
  7337. var kc = 0;
  7338. kc < this.checkJson[z][kz].checkCount.length;
  7339. kc++
  7340. ) {
  7341. this.checkJson[z][kz].checkPerent.push(
  7342. Math.round(
  7343. (this.checkJson[z][kz].checkCount[kc] / checkPeople) *
  7344. 100
  7345. )
  7346. );
  7347. }
  7348. }
  7349. }
  7350. }
  7351. }
  7352. this.$forceUpdate();
  7353. if (this.cidttt === 1) {
  7354. let unitJson2 = JSON.parse(res.data[0][0].chapters);
  7355. this.unitJson2 = JSON.parse(res.data[0][0].chapters);
  7356. let _unitJson2 = JSON.parse(JSON.stringify(this.unitJson));
  7357. let _unitJson = [];
  7358. let _chapAarry = [];
  7359. let _unitIndex = JSON.parse(JSON.stringify(this.unitIndex));
  7360. let _unitIndex2 = JSON.parse(JSON.stringify(this.unitIndex));
  7361. let index = 1;
  7362. let chapindex;
  7363. if (_unitJson2.length > unitJson2.length) {
  7364. for (let c = 0; c < _unitJson2.length; c++) {
  7365. _chapAarry.push(_unitJson2[c].chapterInfo[0].chapterid);
  7366. }
  7367. for (let j = 0; j < unitJson2.length; j++) {
  7368. let count = 0;
  7369. for (let k = 0; k < _unitJson2.length; k++) {
  7370. if (
  7371. unitJson2[j].chapterInfo[0].chapterid ==
  7372. _unitJson2[k].chapterInfo[0].chapterid
  7373. ) {
  7374. count++;
  7375. _chapAarry.splice(
  7376. _chapAarry.indexOf(_unitJson2[k].chapterInfo[0].chapterid),
  7377. 1
  7378. );
  7379. _unitJson.push(unitJson2[j]);
  7380. break;
  7381. }
  7382. }
  7383. }
  7384. for (let k = 0; k < _unitJson2.length; k++) {
  7385. if (_unitJson2[k].isUpdate == 1) {
  7386. _chapAarry.splice(
  7387. _chapAarry.indexOf(_unitJson2[k].chapterInfo[0].chapterid),
  7388. 1
  7389. );
  7390. _unitJson.push(_unitJson2[k]);
  7391. }
  7392. }
  7393. console.log(_chapAarry);
  7394. for (let d = 0; d < _unitJson2.length; d++) {
  7395. if (
  7396. _chapAarry.indexOf(_unitJson2[d].chapterInfo[0].chapterid) != -1
  7397. ) {
  7398. if (_unitIndex == d) {
  7399. index = 2;
  7400. }
  7401. chapindex = d;
  7402. }
  7403. }
  7404. } else {
  7405. _unitJson = JSON.parse(JSON.stringify(_unitJson2));
  7406. }
  7407. for (let i = 0; i < unitJson2.length; i++) {
  7408. if (
  7409. (i < _unitJson.length - 1 || i == _unitJson.length - 1) &&
  7410. _unitJson[i].chapterInfo[0].chapterid !=
  7411. unitJson2[i].chapterInfo[0].chapterid
  7412. ) {
  7413. if (i == _unitJson.length - 1) {
  7414. _unitIndex2++;
  7415. }
  7416. _unitJson.splice(i, 0, unitJson2[i]);
  7417. } else if (i > _unitJson.length - 1) {
  7418. _unitJson.push(unitJson2[i]);
  7419. } else if (
  7420. _unitJson[i].chapterInfo[0].chapterid ==
  7421. unitJson2[i].chapterInfo[0].chapterid
  7422. ) {
  7423. _unitJson[i] = unitJson2[i];
  7424. }
  7425. }
  7426. if (_chapAarry.length && index != 2) {
  7427. if (chapindex < _unitIndex) {
  7428. this.isDelete = 2;
  7429. _unitIndex2--;
  7430. } else if (
  7431. _unitJson2[_unitIndex].chapterInfo[0].chapterid !=
  7432. _unitJson[_unitIndex].chapterInfo[0].chapterid
  7433. ) {
  7434. this.isDelete = 2;
  7435. for (let n = 0; n < _unitJson.length; n++) {
  7436. if (
  7437. _unitJson2[_unitIndex].chapterInfo[0].chapterid ==
  7438. _unitJson[n].chapterInfo[0].chapterid
  7439. ) {
  7440. _unitIndex2 = n;
  7441. _unitJson[n] = _unitJson2[_unitIndex];
  7442. break;
  7443. }
  7444. }
  7445. }
  7446. } else if (index != 2) {
  7447. _unitJson2[_unitIndex];
  7448. for (
  7449. var ci = 0;
  7450. ci < _unitJson2[_unitIndex].chapterInfo[0].taskJson.length;
  7451. ci++
  7452. ) {
  7453. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].toolChoose =
  7454. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].toolChoose
  7455. ? _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci]
  7456. .toolChoose
  7457. : [];
  7458. let _chapterData = [];
  7459. for (
  7460. var c = 0;
  7461. c <
  7462. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].chapterData
  7463. .length;
  7464. c++
  7465. ) {
  7466. if (
  7467. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci]
  7468. .chapterData[c]
  7469. ) {
  7470. _chapterData.push(
  7471. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci]
  7472. .chapterData[c]
  7473. );
  7474. }
  7475. }
  7476. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].chapterData =
  7477. _chapterData;
  7478. }
  7479. _unitJson[_unitIndex2] = _unitJson2[_unitIndex];
  7480. }
  7481. if (index == 1) {
  7482. if (this.unitJson.length == _unitJson.length) {
  7483. for (var ui = 0; ui < _unitJson.length; ui++) {
  7484. let keys = Object.keys(this.unitJson[ui].chapterInfo[0])
  7485. for (let ki = 0; ki < keys.length; ki++) {
  7486. if (keys[ki] != "taskJson") {
  7487. this.unitJson[ui].chapterInfo[0][keys[ki]] = _unitJson[ui].chapterInfo[0][keys[ki]]
  7488. }
  7489. }
  7490. let _taskJson2 = _unitJson[ui].chapterInfo[0].taskJson
  7491. if (this.unitJson[ui].chapterInfo[0].taskJson.length == _taskJson2.length) {
  7492. for (let ti = 0; ti < _taskJson2.length; ti++) {
  7493. let tkeys = Object.keys(_taskJson2[ti])
  7494. for (let ki = 0; ki < tkeys.length; ki++) {
  7495. if (tkeys[ki] != "toolArray") {
  7496. this.unitJson[ui].chapterInfo[0].taskJson[ti][keys[ki]] = _unitJson[ui].chapterInfo[0].taskJson[ti][tkeys[ki]]
  7497. }
  7498. }
  7499. let _toolArray2 = _taskJson2[ti].toolArray
  7500. if (this.unitJson[ui].chapterInfo[0].taskJson[ti].toolArray.length == _toolArray2.length) {
  7501. for (let tooli = 0; tooli < _toolArray2.length; tooli++) {
  7502. let toolkeys = Object.keys(_toolArray2[tooli])
  7503. for (let kooli = 0; kooli < toolkeys.length; kooli++) {
  7504. if (toolkeys[kooli] != "toolPhoto" && toolkeys[kooli] != "toolData") {
  7505. this.unitJson[ui].chapterInfo[0].taskJson[ti].toolArray[tooli][toolkeys[kooli]] = _unitJson[ui].chapterInfo[0].taskJson[ti].toolArray[tooli][toolkeys[kooli]]
  7506. }
  7507. }
  7508. }
  7509. } else {
  7510. this.unitJson[ui].chapterInfo[0].taskJson[ti].toolArray = _toolArray2
  7511. }
  7512. }
  7513. } else {
  7514. this.unitJson[ui].chapterInfo[0].taskJson = _taskJson2
  7515. }
  7516. }
  7517. } else {
  7518. this.unitJson = _unitJson
  7519. }
  7520. this.$forceUpdate();
  7521. setTimeout(() => {
  7522. if (this.unitIndex != _unitIndex2) {
  7523. this.isDelete = 2;
  7524. this.unitIndex = _unitIndex2;
  7525. }
  7526. }, 0);
  7527. this.timer = setTimeout(() => {
  7528. this.seleteCourseUpdate();
  7529. }, 1000);
  7530. } else if (index == 2) {
  7531. let _this = this;
  7532. _this
  7533. .$confirm(
  7534. "您所修改的阶段已经被其他老师删除了,需要恢复嘛?",
  7535. "提示",
  7536. {
  7537. confirmButtonText: "需要",
  7538. cancelButtonText: "取消",
  7539. type: "warning",
  7540. }
  7541. )
  7542. .then(() => {
  7543. if (_this.time()) {
  7544. _this.restoreWork(
  7545. _chapAarry[0],
  7546. _unitJson,
  7547. chapindex,
  7548. _unitJson2,
  7549. _unitIndex2
  7550. );
  7551. }
  7552. })
  7553. .catch(() => {
  7554. _this.unitJson = _unitJson;
  7555. _this.$forceUpdate();
  7556. setTimeout(() => {
  7557. if (this.unitIndex != _unitIndex2) {
  7558. this.isDelete = 2;
  7559. this.unitIndex = _unitIndex2;
  7560. }
  7561. }, 0);
  7562. _this.timer = setTimeout(() => {
  7563. _this.seleteCourseUpdate();
  7564. }, 1000);
  7565. });
  7566. }
  7567. } else {
  7568. this.$forceUpdate();
  7569. if (this.timer) {
  7570. clearTimeout(this.timer);
  7571. this.timer = null;
  7572. }
  7573. this.timer = setTimeout(() => {
  7574. this.seleteCourseUpdate();
  7575. }, 1000);
  7576. }
  7577. })
  7578. .catch((err) => {
  7579. console.error(err);
  7580. });
  7581. },
  7582. restoreWork(chapid, unitJson, chapindex, unitJson2, unitIndex2) {
  7583. let params = [
  7584. {
  7585. cid: this.cid,
  7586. chapters: JSON.stringify(this.unitJson),
  7587. uid: this.userid,
  7588. chapid: chapid,
  7589. },
  7590. ];
  7591. this.ajax
  7592. .post(this.$store.state.api + "restoreStudentWork", params)
  7593. .then((res) => {
  7594. this.$message({
  7595. message: "恢复成功",
  7596. type: "success",
  7597. });
  7598. unitJson.splice(chapindex, 0, unitJson2[chapindex]);
  7599. this.unitJson = unitJson;
  7600. this.$forceUpdate();
  7601. setTimeout(() => {
  7602. if (this.unitIndex != unitIndex2) {
  7603. this.isDelete = 2;
  7604. this.unitIndex = unitIndex2;
  7605. }
  7606. }, 0);
  7607. this.timer = setTimeout(() => {
  7608. this.seleteCourseUpdate();
  7609. }, 1000);
  7610. })
  7611. .catch((err) => {
  7612. this.$message.error("网络不佳");
  7613. console.error(err);
  7614. });
  7615. },
  7616. getTypeName() {
  7617. console.log(this.courseTypeId);
  7618. this.$forceUpdate();
  7619. },
  7620. selectAllType() {
  7621. let params = {
  7622. org: this.org && this.org != "" ? this.org : "",
  7623. oid: this.oid && this.oid != "" ? this.oid : "",
  7624. };
  7625. this.ajax
  7626. .get(this.$store.state.api + "selectAllTypeS", params)
  7627. .then((res) => {
  7628. this.CourseType = res.data;
  7629. let _courseTypeId = [];
  7630. for (var i = 0; i < res.data[0].length; i++) {
  7631. if (res.data[0][i].id == "34629ce3-d02f-11ec-8c78-005056b86db5") {
  7632. res.data[0][i].name = "赛道";
  7633. } else if (res.data[0][i].id == "2f8beae3-d030-11ec-8c78-005056b86db5") {
  7634. res.data[0][i].name = "主题";
  7635. }
  7636. if (!this.cid) {
  7637. this.courseTypeId[res.data[0][i].id] = "";
  7638. }
  7639. this.CourseTypeJson[res.data[0][i].id] = [];
  7640. if (this.oid == "1c3b9def-8fbe-11ed-b13d-005056b86db5") {
  7641. if (res.data[0][i].name == "赛道") {
  7642. this.CourseType[0][i].name = "项目类型";
  7643. }
  7644. }
  7645. if (res.data[2].length == 0 && res.data[3].length == 0) {
  7646. if (this.org == '150e3120-9195-11ed-b13d-005056b86db5') {
  7647. for (var j = 0; j < res.data[1].length; j++) {
  7648. if (
  7649. this.courseTypeId.indexOf(res.data[1][j].id) != -1 &&
  7650. _courseTypeId.indexOf(res.data[1][j].id) == -1
  7651. ) {
  7652. _courseTypeId.push(res.data[1][j].id);
  7653. }
  7654. if (res.data[0][i].id == res.data[1][j].pid) {
  7655. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]); // 去除公共分类
  7656. }
  7657. }
  7658. } else {
  7659. this.CourseType = []
  7660. }
  7661. } else {
  7662. if (res.data[2].length > 0) {
  7663. for (var j = 0; j < res.data[2].length; j++) {
  7664. if (
  7665. this.courseTypeId.indexOf(res.data[2][j].id) != -1 &&
  7666. _courseTypeId.indexOf(res.data[2][j].id) == -1
  7667. ) {
  7668. _courseTypeId.push(res.data[2][j].id);
  7669. }
  7670. if (res.data[0][i].id == res.data[2][j].pid) {
  7671. this.CourseTypeJson[res.data[0][i].id].push(res.data[2][j]); // 去除公共分类
  7672. }
  7673. }
  7674. }
  7675. if (res.data[3].length > 0) {
  7676. for (var j = 0; j < res.data[3].length; j++) {
  7677. if (
  7678. this.courseTypeId.indexOf(res.data[3][j].id) != -1 &&
  7679. _courseTypeId.indexOf(res.data[3][j].id) == -1
  7680. ) {
  7681. _courseTypeId.push(res.data[3][j].id);
  7682. }
  7683. if (res.data[0][i].id == res.data[3][j].pid) {
  7684. this.CourseTypeJson[res.data[0][i].id].push(res.data[3][j]); // 去除公共分类
  7685. }
  7686. }
  7687. }
  7688. }
  7689. }
  7690. this.courseTypeId = _courseTypeId;
  7691. })
  7692. .catch((err) => {
  7693. console.error(err);
  7694. });
  7695. },
  7696. selectType() {
  7697. this.ajax
  7698. .get(this.$store.state.api + "selectStudentType")
  7699. .then((res) => {
  7700. this.CourseType = res.data;
  7701. for (var i = 0; i < res.data[0].length; i++) {
  7702. if (!this.cid) {
  7703. this.courseTypeId[res.data[0][i].id] = "";
  7704. }
  7705. for (var j = 0; j < res.data[1].length; j++) {
  7706. if (res.data[0][i].id == res.data[1][j].pid) {
  7707. if (!this.CourseTypeJson[res.data[0][i].id]) {
  7708. this.CourseTypeJson[res.data[0][i].id] = [];
  7709. }
  7710. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]); // 去除公共分类
  7711. }
  7712. }
  7713. }
  7714. this.selectTypeByOid();
  7715. this.selectTypeByOrg();
  7716. })
  7717. .catch((err) => {
  7718. console.error(err);
  7719. });
  7720. },
  7721. selectTypeByOid() {
  7722. let params = {
  7723. oid: this.oid,
  7724. };
  7725. this.ajax
  7726. .get(this.$store.state.api + "selectStudentTypeByOid", params)
  7727. .then((res) => {
  7728. for (var i = 0; i < res.data[0].length; i++) {
  7729. for (var j = 0; j < res.data[1].length; j++) {
  7730. if (res.data[0][i].id == res.data[1][j].pid) {
  7731. if (!this.CourseTypeJson[res.data[0][i].id]) {
  7732. this.CourseTypeJson[res.data[0][i].id] = [];
  7733. }
  7734. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]);
  7735. }
  7736. }
  7737. }
  7738. })
  7739. .catch((err) => {
  7740. console.error(err);
  7741. });
  7742. },
  7743. selectTypeByOrg() {
  7744. let params = {
  7745. oid: this.org,
  7746. };
  7747. this.ajax
  7748. .get(this.$store.state.api + "selectStudentTypeByOid", params)
  7749. .then((res) => {
  7750. for (var i = 0; i < res.data[0].length; i++) {
  7751. for (var j = 0; j < res.data[1].length; j++) {
  7752. if (res.data[0][i].id == res.data[1][j].pid) {
  7753. if (!this.CourseTypeJson[res.data[0][i].id]) {
  7754. this.CourseTypeJson[res.data[0][i].id] = [];
  7755. }
  7756. this.CourseTypeJson[res.data[0][i].id].unshift(res.data[1][j]);
  7757. }
  7758. }
  7759. }
  7760. this.$forceUpdate();
  7761. })
  7762. .catch((err) => {
  7763. console.error(err);
  7764. });
  7765. },
  7766. OtherMb(type) {
  7767. this.typeMode = type;
  7768. setTimeout(() => {
  7769. this.checkEva(this.checkId);
  7770. }, 0);
  7771. },
  7772. checkEva(id) {
  7773. this.selectEva();
  7774. this.evalua = id;
  7775. this.checkId = id;
  7776. if (this.evalua != "") {
  7777. for (var i = 0; i < this.evaJuri.length; i++) {
  7778. if (this.evalua == this.evaJuri[i].id) {
  7779. this.eTitle = this.evaJuri[i].title;
  7780. this.eJson = JSON.parse(this.evaJuri[i].content);
  7781. }
  7782. }
  7783. this.data.data = [];
  7784. this.$forceUpdate();
  7785. setTimeout(() => {
  7786. this.setMindData();
  7787. }, 500);
  7788. }
  7789. },
  7790. selectEva() {
  7791. let params = {
  7792. oid: this.oid,
  7793. };
  7794. this.ajax
  7795. .get(this.$store.state.api + "selectAllEvaluation", params)
  7796. .then((res) => {
  7797. this.evaJuri = res.data[0];
  7798. })
  7799. .catch((err) => {
  7800. console.error(err);
  7801. });
  7802. },
  7803. setMindData() {
  7804. let targetArray = [];
  7805. this.data.data = [];
  7806. this.data.data.push({
  7807. id: "root",
  7808. isroot: true,
  7809. topic: this.eTitle,
  7810. });
  7811. let _eJson = Object.keys(this.eJson);
  7812. let _e = this.eJson;
  7813. for (let i = 0; i < _eJson.length; i++) {
  7814. let element = _e[_eJson[i]];
  7815. this.data.data.push({
  7816. id: element.id,
  7817. parentid: "root",
  7818. topic: element.name,
  7819. });
  7820. // targetArray.push({
  7821. // id: element.id,
  7822. // parentid: "root",
  7823. // name: element.name,
  7824. // });
  7825. targetArray.push({
  7826. value: element.name,
  7827. label: element.name,
  7828. children: [],
  7829. });
  7830. let _eJsonc = Object.keys(element.child);
  7831. let _e2 = element.child;
  7832. for (let j = 0; j < _eJsonc.length; j++) {
  7833. let _ec = _e2[_eJsonc[j]];
  7834. this.data.data.push({
  7835. id: _ec.id,
  7836. parentid: element.id,
  7837. topic: _ec.name,
  7838. });
  7839. // targetArray.push({
  7840. // id: _ec.id,
  7841. // parentid: element.id,
  7842. // name: _ec.name,
  7843. // });
  7844. targetArray[i].children.push({
  7845. value: _ec.name,
  7846. label: _ec.name,
  7847. children: [],
  7848. });
  7849. let _eJsonz = Object.keys(_ec.child);
  7850. let _e3 = _ec.child;
  7851. for (let z = 0; z < _eJsonz.length; z++) {
  7852. let _ez = _e3[_eJsonz[z]];
  7853. this.data.data.push({
  7854. id: _ez.id,
  7855. parentid: _ec.id,
  7856. topic: _ez.name,
  7857. });
  7858. // targetArray.push({
  7859. // id: _ez.id,
  7860. // parentid: _ec.id,
  7861. // name: _ez.name,
  7862. // });
  7863. targetArray[i].children[j].children.push({
  7864. value: _ez.name,
  7865. label: _ez.name,
  7866. });
  7867. }
  7868. }
  7869. }
  7870. this.targetArray = targetArray;
  7871. this.$forceUpdate();
  7872. },
  7873. /*添加评价 */
  7874. addEList(index, tIndex) {
  7875. this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList
  7876. ? this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList.push({
  7877. value: "",
  7878. detail: "",
  7879. score: 5,
  7880. })
  7881. : (this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList = [
  7882. {
  7883. value: "",
  7884. detail: "",
  7885. score: 5,
  7886. },
  7887. ]);
  7888. this.$forceUpdate();
  7889. },
  7890. forceUpdate() {
  7891. this.$forceUpdate();
  7892. },
  7893. deletEList(index, tIndex, eIndex) {
  7894. this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList.splice(
  7895. eIndex,
  7896. 1
  7897. );
  7898. this.$forceUpdate();
  7899. },
  7900. getChoosePic(t) {
  7901. this.chooseType = t;
  7902. this.getAllBanner();
  7903. },
  7904. getAllBanner() {
  7905. this.sysPicVisible = true;
  7906. let params = {
  7907. t: this.chooseType,
  7908. };
  7909. this.ajax
  7910. .get(this.$store.state.api + "selectAllBanner", params)
  7911. .then((res) => {
  7912. this.sysPic = res.data[0];
  7913. })
  7914. .catch((err) => {
  7915. console.error(err);
  7916. });
  7917. },
  7918. deleteSysPic() {
  7919. this.cover = [];
  7920. this.isSysPic = false;
  7921. },
  7922. deleteSelectPic() {
  7923. this.selectJson.url = "";
  7924. },
  7925. setEListStar() {
  7926. this.$forceUpdate();
  7927. },
  7928. deletRateList(i) {
  7929. this.rateJson.splice(i, 1);
  7930. },
  7931. addRateList() {
  7932. this.rateJson.push({
  7933. detail: "",
  7934. score: 5,
  7935. value: "",
  7936. });
  7937. },
  7938. addSt() {
  7939. this.sentenceList.push({
  7940. sentenceTitle: "",
  7941. addSentence: [],
  7942. rightAnswer: [],
  7943. });
  7944. },
  7945. addSen(i) {
  7946. this.sentenceList[i].addSentence.push(this.sentenceList[i].sentenceTitle);
  7947. // this.isPushTitleList.push(this.sentenceTitle);
  7948. this.sentenceList[i].sentenceTitle = "";
  7949. },
  7950. setRightAnswer(s, i, j) {
  7951. if (this.sentenceList[i].rightAnswer.indexOf(s) == -1) {
  7952. this.sentenceList[i].rightAnswer.push(s);
  7953. }
  7954. },
  7955. returnCard(r, i, j) {
  7956. this.sentenceList[i].rightAnswer.splice(j, 1);
  7957. },
  7958. addSentenceTool() {
  7959. for (var i = 0; i < this.sentenceList.length; i++) {
  7960. if (this.sentenceList[i].rightAnswer.length == 0) {
  7961. this.$message.error("请将信息填写完整!");
  7962. return;
  7963. }
  7964. if (
  7965. this.sentenceList[i].addSentence.length !=
  7966. this.sentenceList[i].rightAnswer.length
  7967. ) {
  7968. this.$message.error("请将信息填写完整!");
  7969. return;
  7970. }
  7971. }
  7972. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7973. this.taskCount
  7974. ].toolChoose[this.toolIndex].sentenceList = this.sentenceList;
  7975. this.sentenceList = [
  7976. {
  7977. sentenceTitle: "",
  7978. addSentence: [],
  7979. rightAnswer: [],
  7980. },
  7981. ];
  7982. this.dialogVisibleSentence = false;
  7983. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7984. // itemTaskIndex
  7985. // ].toolChoose[toolIndex].tool = [];
  7986. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7987. // itemTaskIndex
  7988. // ].toolChoose[toolIndex].tool.push(i);
  7989. if (
  7990. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  7991. .toolChoose[this.toolIndex].tool != 47
  7992. ) {
  7993. this.addTools(47, this.taskCount, this.toolIndex);
  7994. }
  7995. },
  7996. addTableJson() {
  7997. if (this.tableJson.text == "" || this.tableJson.text == "<p></p>") {
  7998. this.$message.error("请填写信息!");
  7999. return;
  8000. }
  8001. let params = [
  8002. {
  8003. uid: this.userid,
  8004. cid: this.courseId,
  8005. stage: this.unitIndex,
  8006. task: this.taskCount,
  8007. tool: this.toolIndex,
  8008. content: JSON.stringify(this.tableJson.text).replaceAll(/%/g, "%25"),
  8009. type: 10,
  8010. atool: 48,
  8011. },
  8012. ];
  8013. this.ajax
  8014. .post(this.$store.state.api + "addCourseWorksS", params)
  8015. .then((res) => {
  8016. this.$message({
  8017. message: "提交成功",
  8018. type: "success",
  8019. });
  8020. this.seleteCourseUpdate();
  8021. this.setPeople(this.unitIndex, this.taskCount, this.userid);
  8022. this.dialogVisibleTable = false;
  8023. })
  8024. .catch((err) => {
  8025. this.$message.error("提交失败");
  8026. console.error(err);
  8027. });
  8028. },
  8029. addStudentAsk() {
  8030. if (!this.radio.length) {
  8031. this.$message.error("请选择选项");
  8032. return;
  8033. }
  8034. for (var i = 0; i < this.askJson.askCount; i++) {
  8035. if (this.radio[i] !== 0 && !this.radio[i]) {
  8036. this.$message.error("请选择选项");
  8037. return;
  8038. }
  8039. }
  8040. let params = [
  8041. {
  8042. uid: this.userid,
  8043. cid: this.courseId,
  8044. stage: this.unitIndex,
  8045. task: this.taskCount,
  8046. tool: this.toolIndex,
  8047. content: JSON.stringify(this.radio),
  8048. type: 14,
  8049. atool: 56,
  8050. },
  8051. ];
  8052. this.ajax
  8053. .post(this.$store.state.api + "addCourseWorksS", params)
  8054. .then((res) => {
  8055. this.$message({
  8056. message: "提交成功",
  8057. type: "success",
  8058. });
  8059. this.radio = [];
  8060. this.seleteCourseUpdate();
  8061. this.dialogVisibleVote2 = false;
  8062. })
  8063. .catch((err) => {
  8064. this.$message.error("提交失败");
  8065. console.error(err);
  8066. });
  8067. },
  8068. addTextJson() {
  8069. if (this.tableJson.text == "" || this.tableJson.text == "<p></p>") {
  8070. this.$message.error("请填写信息!");
  8071. return;
  8072. }
  8073. let params = [
  8074. {
  8075. uid: this.userid,
  8076. cid: this.courseId,
  8077. stage: this.unitIndex,
  8078. task: this.taskCount,
  8079. tool: this.toolIndex,
  8080. content: JSON.stringify(this.tableJson.text).replaceAll(/%/g, "%25"),
  8081. type: 12,
  8082. atool: 52,
  8083. },
  8084. ];
  8085. this.ajax
  8086. .post(this.$store.state.api + "addCourseWorksS", params)
  8087. .then((res) => {
  8088. this.$message({
  8089. message: "提交成功",
  8090. type: "success",
  8091. });
  8092. this.tableJson.text = "";
  8093. this.seleteCourseUpdate();
  8094. this.setPeople(this.unitIndex, this.taskCount, this.userid);
  8095. this.dialogVisibleText3 = false;
  8096. })
  8097. .catch((err) => {
  8098. this.$message.error("提交失败");
  8099. console.error(err);
  8100. });
  8101. },
  8102. setPeople(i, task, uid) {
  8103. if (this.checkboxList3.indexOf(uid) == -1 && uid != this.courseUserid) {
  8104. this.checkboxList3.push(uid);
  8105. this.setMan();
  8106. }
  8107. // debugger
  8108. if (
  8109. this.unitJson[i].chapterInfo[0].taskJson[task].people != uid &&
  8110. (!this.unitJson[i].chapterInfo[0].taskJson[task].tcMember ||
  8111. this.unitJson[i].chapterInfo[0].taskJson[task].tcMember.indexOf(
  8112. uid
  8113. ) == -1)
  8114. ) {
  8115. this.unitJson[i].chapterInfo[0].taskJson[task].tcMember
  8116. ? this.unitJson[i].chapterInfo[0].taskJson[task].tcMember.push(uid)
  8117. : (this.unitJson[i].chapterInfo[0].taskJson[task].tcMember = [uid]);
  8118. }
  8119. this.$forceUpdate();
  8120. },
  8121. goToTask(i) {
  8122. document.getElementsByClassName("rightBox")[0].scrollTop =
  8123. document.getElementsByClassName("taskBorder")[i].offsetTop - 100;
  8124. this.isClickColor = i + 1;
  8125. },
  8126. taskMove(type, index) {
  8127. if (type == 1) {
  8128. if (index > 0) {
  8129. let a = JSON.parse(
  8130. JSON.stringify(
  8131. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index - 1]
  8132. )
  8133. );
  8134. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index - 1] =
  8135. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index];
  8136. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index] = a;
  8137. }
  8138. } else {
  8139. if (
  8140. index <
  8141. this.unitJson[this.unitIndex].chapterInfo[0].taskJson.length - 1
  8142. ) {
  8143. let a = JSON.parse(
  8144. JSON.stringify(
  8145. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index + 1]
  8146. )
  8147. );
  8148. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index + 1] =
  8149. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index];
  8150. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index] = a;
  8151. }
  8152. }
  8153. this.$forceUpdate();
  8154. },
  8155. addGroup(i) {
  8156. // this.groupJson.group.splice(i + 1, 0, { name: "第"+(i+1)+"组" });
  8157. this.groupJson.group.push({
  8158. name: "第" + (this.groupJson.group.length + 1) + "组",
  8159. });
  8160. },
  8161. deleteGroup(i) {
  8162. this.groupJson.group.splice(i, 1);
  8163. },
  8164. addGroupJson() {
  8165. for (var i = 0; i < this.groupJson.group.length; i++) {
  8166. if (!this.groupJson.group[i].name) {
  8167. this.$message.error("请将信息填写完整!");
  8168. return;
  8169. }
  8170. }
  8171. if (!this.groupJson.number) {
  8172. this.$message.error("请将信息填写完整!");
  8173. return;
  8174. }
  8175. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8176. this.taskCount
  8177. ].toolChoose[this.toolIndex].groupJson = JSON.parse(
  8178. JSON.stringify(this.groupJson)
  8179. );
  8180. this.dialogVisibleGroup = false;
  8181. this.groupJson = {};
  8182. if (
  8183. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  8184. .toolChoose[this.toolIndex].tool != 49
  8185. ) {
  8186. this.addTools(49, this.taskCount, this.toolIndex);
  8187. }
  8188. },
  8189. deleteWorks(id) {
  8190. this.$confirm("确定删除此作业吗?", "提示", {
  8191. confirmButtonText: "确定",
  8192. cancelButtonText: "取消",
  8193. type: "warning",
  8194. })
  8195. .then(() => {
  8196. let params = [
  8197. {
  8198. id: id,
  8199. },
  8200. ];
  8201. this.ajax
  8202. .post(this.$store.state.api + "deleteCourseWorkS", params)
  8203. .then((res) => {
  8204. this.$message({
  8205. message: "删除成功",
  8206. type: "success",
  8207. });
  8208. this.seleteCourseUpdate();
  8209. })
  8210. .catch((err) => {
  8211. this.$message.error("网络异常");
  8212. console.error(err);
  8213. });
  8214. })
  8215. .catch(() => { });
  8216. },
  8217. openLineS(url) {
  8218. window.open(url);
  8219. },
  8220. checkFileFull(type, url) {
  8221. this.fullDialogVisible = true;
  8222. this.fulltype = type;
  8223. this.fullUrl = url;
  8224. },
  8225. downloadFile(url) {
  8226. let _this = this;
  8227. let _url = "";
  8228. if (
  8229. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  8230. ) {
  8231. _url = url.split(
  8232. "https://view.officeapps.live.com/op/view.aspx?src="
  8233. )[1];
  8234. } else {
  8235. _url = url;
  8236. }
  8237. const x = new XMLHttpRequest();
  8238. x.open("GET", _url, true);
  8239. x.responseType = "blob";
  8240. const loading = _this.$loading.service({
  8241. background: "rgba(255, 255, 255, 0.7)",
  8242. target: document.body,
  8243. text: '文件加载中...'
  8244. });
  8245. // _this.$message.success("文件下载中...");
  8246. x.onload = function (e) {
  8247. loading.close();
  8248. // const url = window.URL.createObjectURL(x.response);
  8249. // const a = document.createElement("a");
  8250. // a.href = url;
  8251. // a.target = "_blank";
  8252. // a.download = url;
  8253. // a.click();
  8254. // a.remove();
  8255. let content = x.response;
  8256. let elink = document.createElement("a");
  8257. elink.download = decodeURI(
  8258. _url.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
  8259. );
  8260. elink.style.display = "none";
  8261. let blob = new Blob([content]);
  8262. elink.href = URL.createObjectURL(blob);
  8263. document.body.appendChild(elink);
  8264. elink.click();
  8265. document.body.removeChild(elink);
  8266. };
  8267. x.send();
  8268. },
  8269. editSourceUpadte(taskCount, index) {
  8270. this.taskCount = taskCount;
  8271. this.toolIndex = index;
  8272. this.editSourceType = 2;
  8273. this.sourcesData = JSON.parse(
  8274. JSON.stringify(
  8275. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[taskCount]
  8276. .toolArray[index].toolData
  8277. )
  8278. );
  8279. this.proVisible = false;
  8280. this.progress = 0;
  8281. this.inputShow = true;
  8282. this.dialogVisibleSource = true;
  8283. },
  8284. addQuestion() {
  8285. let params = [
  8286. {
  8287. uid: this.userid,
  8288. cid: this.courseId,
  8289. stage: this.unitIndex,
  8290. task: this.taskCount,
  8291. tool: this.toolIndex,
  8292. content: this.questionAnswer.replaceAll(/%/g, "%25"),
  8293. type: 3,
  8294. atool: 15,
  8295. },
  8296. ];
  8297. this.ajax
  8298. .post(this.$store.state.api + "addCourseWorksS", params)
  8299. .then((res) => {
  8300. this.$message({
  8301. message: "提交成功",
  8302. type: "success",
  8303. });
  8304. this.questionAnswer = "";
  8305. this.answerDialogVisible = false;
  8306. this.seleteCourseUpdate();
  8307. })
  8308. .catch((err) => {
  8309. this.$message.error("提交失败");
  8310. console.error(err);
  8311. });
  8312. },
  8313. addCourseWorksS(tool, type, content, task, toolindex) {
  8314. let params = [
  8315. {
  8316. uid: this.userid,
  8317. cid: this.courseId,
  8318. stage: this.unitIndex,
  8319. task: task,
  8320. tool: toolindex,
  8321. content: content,
  8322. type: type,
  8323. atool: tool,
  8324. },
  8325. ];
  8326. this.ajax
  8327. .post(this.$store.state.api + "addCourseWorksS", params)
  8328. .then((res) => {
  8329. this.$message({
  8330. message: "提交成功",
  8331. type: "success",
  8332. });
  8333. this.setPeople(this.unitIndex, task, this.userid);
  8334. this.seleteCourseUpdate();
  8335. })
  8336. .catch((err) => {
  8337. this.$message.error("提交失败");
  8338. console.error(err);
  8339. });
  8340. },
  8341. openFile(f) {
  8342. this.pptImgUrl = "";
  8343. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  8344. if (
  8345. a.indexOf(f.split(".")[f.split(".").length - 1].toLocaleUpperCase()) !=
  8346. -1
  8347. ) {
  8348. this.pptImgUrl =
  8349. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(f);
  8350. this.showPDF = false;
  8351. this.dialogVisibleFile = true;
  8352. } else if (
  8353. f.split(".")[f.split(".").length - 1].toLocaleUpperCase() == "PDF"
  8354. ) {
  8355. this.pptImgUrl = f;
  8356. this.showPDF = true;
  8357. this.dialogVisibleFile = true;
  8358. }
  8359. },
  8360. openText(f) {
  8361. this.tableJson.text = JSON.parse(f);
  8362. this.dialogVisibleText2 = true;
  8363. },
  8364. openAsk(f, taskCount, i) {
  8365. this.askJson = JSON.parse(
  8366. JSON.stringify(
  8367. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[taskCount]
  8368. .toolArray[i].askJson
  8369. )
  8370. );
  8371. this.radio = JSON.parse(f);
  8372. this.dialogVisibleVote3 = true;
  8373. },
  8374. openMember() {
  8375. this.searchTN = "";
  8376. this.page = 1
  8377. this.getTeacher();
  8378. this.dialogVisibleMember = true;
  8379. },
  8380. updateType(sid) {
  8381. var a = this.courseTypeId;
  8382. var a1 = JSON.parse(JSON.stringify(this.courseTypeId));
  8383. var c = [];
  8384. var b = sid.pid;
  8385. var d = [];
  8386. // for (var i = 0; i < this.CourseType[1].length; i++) {
  8387. // if (this.CourseType[1][i].id == sid) {
  8388. // b = this.CourseType[1][i].pid;
  8389. // }
  8390. // }
  8391. for (var j = 0; j < this.CourseTypeJson[b].length; j++) {
  8392. d.push(this.CourseTypeJson[b][j].id);
  8393. }
  8394. for (var i = 0; i < a.length; i++) {
  8395. if (d.indexOf(a[i]) == -1) {
  8396. c.push(a[i]);
  8397. }
  8398. }
  8399. c.push(sid.id);
  8400. this.courseTypeId = c;
  8401. },
  8402. openVideo(w) {
  8403. this.videoDetail = JSON.parse(JSON.stringify(this.playerOptions));
  8404. this.videoDetail.sources[0].src = w;
  8405. this.videoVisible = true;
  8406. },
  8407. getGMan(people) {
  8408. let _people = "";
  8409. if (this.ManAarray.length) {
  8410. for (var i = 0; i < this.ManAarray.length; i++) {
  8411. if (this.ManAarray[i].userid == people) {
  8412. _people = this.ManAarray[i].name;
  8413. break;
  8414. }
  8415. }
  8416. }
  8417. return _people ? _people : "无";
  8418. },
  8419. },
  8420. beforeDestroy() {
  8421. clearTimeout(this.timer);
  8422. this.timer = null;
  8423. },
  8424. beforeRouteLeave(to, from, next) {
  8425. clearTimeout(this.timer);
  8426. this.timer = null;
  8427. next();
  8428. },
  8429. beforeRouteEnter(to, from, next) {
  8430. next((vm) => {
  8431. vm.fpath = from.path;
  8432. });
  8433. },
  8434. created() {
  8435. this.getStudent();
  8436. this.getTeacher();
  8437. this.getClass();
  8438. this.getTemplate();
  8439. // this.selectEva();
  8440. this.loading = false;
  8441. setTimeout(() => {
  8442. this.selectCourseDetail();
  8443. // this.selectEva();
  8444. }, 500);
  8445. },
  8446. };
  8447. </script>
  8448. <style scoped>
  8449. @media screen and (max-width: 1280px) {
  8450. .mbCss {
  8451. flex-direction: column !important;
  8452. }
  8453. .pjCss {
  8454. width: 100% !important;
  8455. }
  8456. .evaCss {
  8457. width: 100% !important;
  8458. }
  8459. }
  8460. .dialog_diy>>>.el-dialog__header {
  8461. background: #3c3c3c !important;
  8462. padding: 15px 20px;
  8463. }
  8464. .dialog_diy>>>.el-dialog__title {
  8465. color: #fff;
  8466. }
  8467. .dialog_diy>>>.el-dialog__headerbtn {
  8468. top: 19px;
  8469. }
  8470. .dialog_diy>>>.el-dialog__headerbtn .el-dialog__close {
  8471. color: #fff;
  8472. }
  8473. .dialog_diy>>>.el-dialog__headerbtn .el-dialog__close:hover {
  8474. color: #fff;
  8475. }
  8476. .dialog_diy>>>.el-dialog__body,
  8477. .dialog_diy>>>.el-dialog__footer {
  8478. background: #fafafa;
  8479. }
  8480. .dialog_diy3>>>.el-dialog__body,
  8481. .dialog_diy3>>>.el-dialog__footer {
  8482. background: #eee !important;
  8483. }
  8484. .dialog_diy3>>>.el-dialog__body {
  8485. padding: 20px 20px;
  8486. }
  8487. .source_diy>>>.el-dialog {
  8488. height: 100% !important;
  8489. margin: 0 auto !important;
  8490. }
  8491. .source_diy>>>.el-dialog__body {
  8492. height: calc(100% - 185px);
  8493. overflow: auto;
  8494. background: #e6eaf0;
  8495. }
  8496. .source_diy>>>.el-dialog__footer {
  8497. background: #e6eaf0 !important;
  8498. }
  8499. .left {
  8500. border-right: 1px solid rgb(60, 94, 143);
  8501. display: flex;
  8502. flex-direction: column;
  8503. align-items: center;
  8504. min-height: 600px;
  8505. width: 385px;
  8506. height: 80%;
  8507. }
  8508. .tips {
  8509. color: rgb(128, 128, 128);
  8510. font-size: 12px;
  8511. width: 270px;
  8512. margin: 40px;
  8513. }
  8514. .pb_content {
  8515. height: 100% !important;
  8516. /* margin: 0 20px 0 20px; */
  8517. }
  8518. .pb_content_body {
  8519. width: 100% !important;
  8520. height: 100%;
  8521. }
  8522. .info_solid {
  8523. width: 270px;
  8524. height: 30px;
  8525. border-left: 1px solid #bdbdbd;
  8526. margin: 10px 0px 10px 30px;
  8527. }
  8528. .info_steps {
  8529. width: 270px;
  8530. font-size: 0.875rem;
  8531. display: flex;
  8532. align-items: center;
  8533. }
  8534. .info_steps span:nth-child(1) {
  8535. width: 30px;
  8536. height: 30px;
  8537. background: rgba(0, 0, 0, 0.38);
  8538. display: block;
  8539. color: #fff;
  8540. border-radius: 40px;
  8541. text-align: center;
  8542. line-height: 30px;
  8543. }
  8544. .steps_active {
  8545. background: #3d67bc !important;
  8546. }
  8547. .info_steps span:nth-child(2) {
  8548. margin-left: 5px;
  8549. }
  8550. .right {
  8551. height: 100%;
  8552. width: 100%;
  8553. display: flex;
  8554. overflow: hidden;
  8555. }
  8556. .basic_box {
  8557. margin: 0 auto;
  8558. position: relative;
  8559. padding: 0 20px 0 20px;
  8560. }
  8561. .basic_box_success {
  8562. width: 100%;
  8563. min-height: 455px;
  8564. padding: 50px 0;
  8565. position: relative;
  8566. text-align: center;
  8567. border-bottom: 1px solid #bfbfbf;
  8568. box-sizing: border-box;
  8569. display: flex;
  8570. align-items: center;
  8571. flex-direction: column;
  8572. justify-content: center;
  8573. }
  8574. .info_title {
  8575. font-size: 1.5em;
  8576. margin-right: 25px;
  8577. /* margin: 20px 30px 20px 30px; */
  8578. }
  8579. .bInfo_title {
  8580. text-align: left;
  8581. margin: 10px 0;
  8582. }
  8583. .small_title {
  8584. font-size: 14px;
  8585. line-height: 40px;
  8586. }
  8587. .chapter_beizhu {
  8588. font-size: 12px;
  8589. font-weight: bold;
  8590. float: right;
  8591. color: rgb(128, 128, 128);
  8592. margin-top: 5px;
  8593. }
  8594. .chapter_uploadBox1 {
  8595. text-align: left;
  8596. background-color: rgb(242, 242, 242);
  8597. width: 100%;
  8598. height: 67px;
  8599. padding: 0px 15px;
  8600. border-radius: 8px;
  8601. overflow: hidden;
  8602. font-size: 16px;
  8603. box-sizing: border-box;
  8604. position: relative;
  8605. }
  8606. .chapter_add {
  8607. width: 100%;
  8608. height: 32px;
  8609. margin-top: 15px;
  8610. cursor: pointer;
  8611. }
  8612. .chapter_add_l {
  8613. margin-left: 5px;
  8614. width: 30px;
  8615. height: 30px;
  8616. float: left;
  8617. border: 1px solid #aaa;
  8618. color: #aaa;
  8619. border-radius: 50%;
  8620. font-size: 25px;
  8621. text-align: center;
  8622. }
  8623. .chapter_add_r {
  8624. font-size: 18px;
  8625. height: 40px;
  8626. line-height: 30px;
  8627. text-indent: 10px;
  8628. color: #aaa;
  8629. }
  8630. .chapter_add_r span {
  8631. font-size: 12px;
  8632. color: rgb(204, 204, 204);
  8633. }
  8634. .chapter_add_input {
  8635. display: none;
  8636. }
  8637. .line {
  8638. width: 85%;
  8639. margin: 0 auto;
  8640. border-top: 1px solid #e5e5e5;
  8641. margin-top: 20px;
  8642. }
  8643. .info_btnBox {
  8644. width: 100%;
  8645. display: flex;
  8646. justify-content: space-evenly;
  8647. margin: 10px 0 10px 0;
  8648. }
  8649. .info_btn,
  8650. .teacherWord {
  8651. color: #fff;
  8652. background-color: #0f7eff;
  8653. padding: 8px 24px;
  8654. font-size: 0.9375rem;
  8655. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 2px 2px 0px rgb(0 0 0 / 14%),
  8656. 0px 3px 1px -2px rgb(0 0 0 / 12%);
  8657. min-width: 64px;
  8658. font-weight: 500;
  8659. border-radius: 4px;
  8660. box-sizing: border-box;
  8661. border: none;
  8662. cursor: pointer;
  8663. }
  8664. .teacherWord {
  8665. width: 105px !important;
  8666. text-align: center !important;
  8667. line-height: 36px !important;
  8668. padding: 0 !important;
  8669. font-size: 14px !important;
  8670. margin: 10px 0 !important;
  8671. }
  8672. .wordTeacher {
  8673. display: flex;
  8674. flex-direction: column;
  8675. width: 145px;
  8676. text-align: center;
  8677. font-size: 14px;
  8678. margin: 30px 0 0 10px;
  8679. background: #fff;
  8680. position: relative;
  8681. border-radius: 5px;
  8682. padding: 25px 0px;
  8683. }
  8684. .wordPic {
  8685. margin: 0 auto;
  8686. width: 60px;
  8687. height: 60px;
  8688. cursor: pointer;
  8689. }
  8690. .deleteWord {
  8691. width: 22px;
  8692. height: 22px;
  8693. position: absolute;
  8694. right: 5px;
  8695. top: -15px;
  8696. cursor: pointer;
  8697. display: none;
  8698. z-index: 999;
  8699. }
  8700. .wordPic>img,
  8701. .deleteWord>img,
  8702. .addToolImg>img {
  8703. width: 100%;
  8704. height: 100%;
  8705. }
  8706. .info_btn:hover {
  8707. background-color: #4f7cd5 !important;
  8708. }
  8709. .cru_selectBox {
  8710. display: flex;
  8711. margin: 24px 0 10px;
  8712. flex-wrap: nowrap;
  8713. white-space: nowrap;
  8714. overflow: auto;
  8715. position: relative;
  8716. height: 47px;
  8717. }
  8718. .cru_selectBox::-webkit-scrollbar {
  8719. /*滚动条整体样式*/
  8720. width: 6px;
  8721. /*高宽分别对应横竖滚动条的尺寸*/
  8722. height: 6px;
  8723. }
  8724. /*定义滚动条轨道 内阴影+圆角*/
  8725. .cru_selectBox::-webkit-scrollbar-track {
  8726. border-radius: 10px;
  8727. background-color: #eee;
  8728. }
  8729. /*定义滑块 内阴影+圆角*/
  8730. .cru_selectBox::-webkit-scrollbar-thumb {
  8731. border-radius: 10px;
  8732. -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  8733. background-color: rgba(0, 0, 0, 0.1);
  8734. }
  8735. .cru_line {
  8736. position: absolute;
  8737. bottom: 8px;
  8738. -webkit-transition: all 0.5s;
  8739. transition: all 0.5s;
  8740. left: 0px;
  8741. width: 60px;
  8742. margin-left: 6px;
  8743. background: #0061FF;
  8744. height: 4px;
  8745. border-radius: 5px;
  8746. }
  8747. .cru_select {
  8748. font-size: 21px;
  8749. margin-right: 37px;
  8750. margin-left: 5px;
  8751. cursor: pointer;
  8752. color: #a6a6a6;
  8753. }
  8754. .cru_selected {
  8755. color: #0061FF !important;
  8756. }
  8757. .chapter_contentbox {
  8758. display: flex;
  8759. align-items: center;
  8760. margin-top: 15px;
  8761. }
  8762. .chapter_contentbox>div:nth-child(1) {
  8763. /* width: 150px; */
  8764. margin: 0px;
  8765. /* font-size: 2em; */
  8766. color: black;
  8767. display: block;
  8768. white-space: nowrap;
  8769. overflow: hidden;
  8770. text-overflow: ellipsis;
  8771. /* font-weight: 600; */
  8772. margin-right: 20px;
  8773. font-size: 18px;
  8774. }
  8775. .chapter_contentbox>div:nth-child(2) {
  8776. width: 380px;
  8777. }
  8778. .chapter_contentbox>div:nth-child(3),
  8779. .remove {
  8780. background-image: url("../../../assets/remove.png");
  8781. cursor: pointer;
  8782. opacity: 0.5;
  8783. width: 40px !important;
  8784. height: 50px;
  8785. background-repeat: no-repeat;
  8786. background-position: 5px 10px;
  8787. }
  8788. .remove1 {
  8789. background-image: url("../../../assets/remove1.png");
  8790. background-repeat: no-repeat;
  8791. background-position: 5px 10px;
  8792. width: 40px;
  8793. height: 50px;
  8794. cursor: pointer;
  8795. }
  8796. .binfo_input {
  8797. font: inherit;
  8798. color: currentColor;
  8799. width: 100%;
  8800. margin: 0;
  8801. /* padding: 15px 14px; */
  8802. padding: 8px 14px;
  8803. display: block;
  8804. min-width: 0;
  8805. outline: none;
  8806. box-sizing: content-box;
  8807. background: none;
  8808. border: 1px solid rgba(0, 0, 0, 0.23);
  8809. border-radius: 4px;
  8810. box-sizing: border-box;
  8811. background: #fff;
  8812. font-size: 18px;
  8813. }
  8814. .binfo_input:focus-visible {
  8815. border: 1px solid rgba(61, 103, 188);
  8816. }
  8817. .time {
  8818. display: flex;
  8819. margin: 35px 0 80px 0;
  8820. }
  8821. .chapter_btnbox {
  8822. width: 160px;
  8823. border-radius: 5px;
  8824. border: 2px dashed gray;
  8825. display: flex;
  8826. padding: 8px 50px;
  8827. align-items: center;
  8828. justify-content: center;
  8829. margin: 30px auto 0;
  8830. cursor: pointer;
  8831. }
  8832. .icon_add {
  8833. position: relative;
  8834. width: 24px;
  8835. padding-top: 20px;
  8836. border-radius: 100%;
  8837. border-width: 2px;
  8838. border-style: solid;
  8839. border-color: gray;
  8840. }
  8841. .icon_add i:nth-child(1) {
  8842. position: absolute;
  8843. left: 50%;
  8844. top: 50%;
  8845. height: 60%;
  8846. transform: translate(-50%, -50%);
  8847. border-width: 1px;
  8848. border-style: solid;
  8849. border-color: inherit;
  8850. }
  8851. .icon_add i:nth-child(2) {
  8852. position: absolute;
  8853. top: 50%;
  8854. left: 50%;
  8855. width: 60%;
  8856. transform: translate(-50%, -50%);
  8857. border-width: 1px;
  8858. border-style: solid;
  8859. border-color: inherit;
  8860. }
  8861. .chapter_btn_w {
  8862. font-size: 0.9375rem;
  8863. font-weight: bold;
  8864. color: gray;
  8865. margin-left: 20px;
  8866. }
  8867. .disUoloadSty>>>.el-icon-plus {
  8868. display: none !important;
  8869. /* 上传按钮隐藏 */
  8870. }
  8871. .imgLeft {
  8872. margin: 15px 0;
  8873. }
  8874. .add_info_box {
  8875. margin: 20px 0;
  8876. }
  8877. .add_info_box button {
  8878. margin: 0 10px 10px 0;
  8879. }
  8880. .add_chapters_box {
  8881. text-align: left;
  8882. background-color: rgb(232 234 237);
  8883. width: 100%;
  8884. padding: 0px 15px;
  8885. border-radius: 15px;
  8886. font-size: 16px;
  8887. box-sizing: border-box;
  8888. position: relative;
  8889. padding: 0 10px 5px 10px;
  8890. height: 185px;
  8891. overflow-y: auto;
  8892. overflow-x: hidden;
  8893. }
  8894. .homework_box {
  8895. display: flex;
  8896. align-items: flex-start;
  8897. flex-wrap: wrap;
  8898. margin: 15px 0 0 0;
  8899. flex-direction: column;
  8900. align-content: flex-start;
  8901. }
  8902. .course_homework {
  8903. display: flex;
  8904. justify-content: center;
  8905. flex-direction: row;
  8906. align-items: center;
  8907. margin: 0 10px 0 0;
  8908. }
  8909. .course_homework>>>.el-input__inner {
  8910. width: 140px;
  8911. margin-left: 15px;
  8912. }
  8913. .chapter_upload_move {
  8914. position: relative;
  8915. background-color: #fff;
  8916. position: absolute;
  8917. width: 100%;
  8918. top: 0px;
  8919. left: 0px;
  8920. border: 1px solid #eee;
  8921. border-radius: 5px;
  8922. transition: width 2s;
  8923. -moz-transition: width 2s;
  8924. -webkit-transition: width 2s;
  8925. -o-transition: width 2s;
  8926. }
  8927. .chapter_upload_l_i {
  8928. background-image: url("../../../assets/icon.png");
  8929. background-position: 3px -165px;
  8930. width: 30px;
  8931. height: 30px;
  8932. margin: 10px auto 0 auto;
  8933. }
  8934. .left_first {
  8935. display: flex;
  8936. flex-direction: column;
  8937. flex-wrap: nowrap;
  8938. }
  8939. .right_first {
  8940. width: 100%;
  8941. height: 100%;
  8942. margin-top: 15px;
  8943. }
  8944. .right_title {
  8945. height: 30px;
  8946. padding: 15px 0 15px 20px;
  8947. border-bottom: 1px solid #f2f2f2;
  8948. font-size: 1.5em;
  8949. font-weight: bold;
  8950. color: #0f7eff;
  8951. margin: 0 auto;
  8952. }
  8953. .addNewPP>>>.el-dialog {
  8954. margin-top: 5vh !important;
  8955. }
  8956. .people {
  8957. border: 1px solid rgb(229 229 229);
  8958. height: 350px;
  8959. border-radius: 5px;
  8960. width: 100%;
  8961. overflow: auto;
  8962. }
  8963. .people_top {
  8964. display: flex;
  8965. width: 100%;
  8966. /* justify-content: space-between; */
  8967. /* align-items: center; */
  8968. flex-direction: column;
  8969. padding: 10px 25px 0;
  8970. box-sizing: border-box;
  8971. }
  8972. .people_nav,
  8973. .people_top_right {
  8974. /* padding: 20px 0 0 20px; */
  8975. }
  8976. .people_top_right {
  8977. height: 40px;
  8978. margin-bottom: 10px;
  8979. }
  8980. .people_search {
  8981. display: flex;
  8982. position: relative;
  8983. }
  8984. .people_search>>>.el-input__inner {
  8985. /* height: 25px; */
  8986. width: 95%;
  8987. }
  8988. .search_img {
  8989. width: 20px;
  8990. height: 20px;
  8991. position: absolute;
  8992. right: 30px;
  8993. top: 50%;
  8994. transform: translateY(-50%);
  8995. }
  8996. .search_img>img {
  8997. width: 100%;
  8998. height: 100%;
  8999. }
  9000. .people_name {
  9001. display: flex;
  9002. justify-content: flex-start;
  9003. padding: 10px 0 0 25px;
  9004. flex-direction: column;
  9005. flex-wrap: nowrap;
  9006. height: calc(100% - 140px);
  9007. overflow-y: auto;
  9008. overflow-x: hidden;
  9009. flex-direction: column;
  9010. }
  9011. .people_name>>>.el-checkbox {
  9012. width: 100%;
  9013. display: flex;
  9014. align-items: center;
  9015. margin-bottom: 10px;
  9016. }
  9017. .people_name>>>.el-checkbox__label {
  9018. text-overflow: ellipsis;
  9019. overflow: hidden;
  9020. width: 100%;
  9021. }
  9022. .right_img {
  9023. width: 150px;
  9024. height: 150px;
  9025. margin: 0 auto;
  9026. }
  9027. .right_img>img {
  9028. width: 100%;
  9029. height: 100%;
  9030. }
  9031. .number {
  9032. margin-top: 20px;
  9033. color: #4aa6ff;
  9034. text-decoration: underline;
  9035. }
  9036. .success_button {
  9037. display: flex;
  9038. text-align: center;
  9039. margin: 5% 0 auto;
  9040. flex-direction: row;
  9041. justify-content: center;
  9042. }
  9043. .look_course {
  9044. margin-right: 40px;
  9045. background: #3d67bc;
  9046. width: 200px;
  9047. height: 35px;
  9048. line-height: 35px;
  9049. color: #fff;
  9050. text-align: center;
  9051. font-size: 14px;
  9052. border-radius: 5px;
  9053. cursor: pointer;
  9054. }
  9055. .attend_others {
  9056. width: 250px;
  9057. background: #4fb13c;
  9058. height: 35px;
  9059. line-height: 35px;
  9060. color: #fff;
  9061. text-align: center;
  9062. font-size: 14px;
  9063. border-radius: 5px;
  9064. cursor: pointer;
  9065. }
  9066. .dialog_diy2>>>.el-dialog__body {
  9067. text-align: center;
  9068. }
  9069. .write_togother {
  9070. position: absolute;
  9071. right: 45px;
  9072. display: flex;
  9073. top: 5%;
  9074. }
  9075. .write_people {
  9076. font-size: 14px;
  9077. line-height: 50px;
  9078. padding-right: 10px;
  9079. }
  9080. .end_write {
  9081. background: #3d67bc;
  9082. color: #fff;
  9083. width: 100px;
  9084. height: 35px;
  9085. line-height: 35px;
  9086. text-align: center;
  9087. font-size: 14px;
  9088. border-radius: 5px;
  9089. cursor: pointer;
  9090. }
  9091. .chapter_upload {
  9092. height: 50px;
  9093. margin-top: 12px;
  9094. position: relative;
  9095. display: flex;
  9096. align-items: center;
  9097. width: 100%;
  9098. min-height: 50px;
  9099. }
  9100. .chapter_upload_t {
  9101. background-color: #fff;
  9102. position: absolute;
  9103. height: 100%;
  9104. top: 0px;
  9105. left: 0px;
  9106. border-radius: 40px;
  9107. box-sizing: border-box;
  9108. box-shadow: 0 0 3px 3px #dfdfdf;
  9109. }
  9110. .chapter_upload_o {
  9111. width: 100%;
  9112. height: 100%;
  9113. position: relative;
  9114. z-index: 1;
  9115. }
  9116. .chapter_upload_ic {
  9117. height: 30px;
  9118. float: right;
  9119. }
  9120. .chapter_upload_ic_l {
  9121. width: 50px;
  9122. height: 50px;
  9123. float: left;
  9124. }
  9125. .chapter_upload_ic_l div {
  9126. width: 30px;
  9127. height: 35px;
  9128. background: url("../../../assets/icon/icon.png");
  9129. }
  9130. .chapter_upload_ic_r {
  9131. width: 50px;
  9132. height: 50px;
  9133. float: left;
  9134. margin-left: 0px;
  9135. display: flex;
  9136. align-items: center;
  9137. }
  9138. .chapter_upload_ic_r div {
  9139. width: 25px;
  9140. height: 25px;
  9141. background-image: url("../../../assets/delete.png");
  9142. background-size: 100% 100%;
  9143. }
  9144. .chapter_upload_n {
  9145. display: flex;
  9146. text-indent: 10px;
  9147. text-decoration: none;
  9148. text-overflow: ellipsis;
  9149. white-space: nowrap;
  9150. overflow: hidden;
  9151. width: 55%;
  9152. margin-left: 10px;
  9153. cursor: pointer;
  9154. margin-top: 2px;
  9155. }
  9156. .chapter_upload_l_i1 {
  9157. background-image: url("../../../assets/icon/video.png");
  9158. width: 28px;
  9159. height: 28px;
  9160. background-size: 100% 100%;
  9161. }
  9162. .chapter_upload_l_i5 {
  9163. background-image: url("../../../assets/icon/word.png");
  9164. width: 24px;
  9165. height: 24px;
  9166. background-size: 100% 100%;
  9167. }
  9168. .chapter_upload_l_i8 {
  9169. background-image: url("../../../assets/icon/line.png");
  9170. width: 24px;
  9171. height: 24px;
  9172. background-size: 100% 100%;
  9173. }
  9174. .chapter_upload_ud {
  9175. display: flex;
  9176. flex-direction: column;
  9177. margin-left: 5px;
  9178. justify-content: center;
  9179. }
  9180. .chapter_upload_up {
  9181. background-image: url("../../../assets/icon/up.png");
  9182. width: 17px;
  9183. height: 15px;
  9184. background-size: 100% 100%;
  9185. cursor: pointer;
  9186. }
  9187. .chapter_upload_down {
  9188. background-image: url("../../../assets/icon/down.png");
  9189. width: 17px;
  9190. height: 15px;
  9191. margin: 2px auto 0 auto;
  9192. background-size: 100% 100%;
  9193. cursor: pointer;
  9194. }
  9195. .addWordStyle {
  9196. display: flex;
  9197. flex-direction: row;
  9198. justify-content: flex-start;
  9199. overflow-x: auto;
  9200. white-space: nowrap;
  9201. flex-wrap: wrap;
  9202. }
  9203. /* table 样式 */
  9204. .cont>>>table {
  9205. border-top: 1px solid #ccc;
  9206. border-left: 1px solid #ccc;
  9207. }
  9208. .cont>>>table td,
  9209. .cont>>>table th {
  9210. border-bottom: 1px solid #ccc;
  9211. border-right: 1px solid #ccc;
  9212. /* padding: 20px 5px; */
  9213. padding: 5px 10px;
  9214. max-width: 0px;
  9215. height: 30px;
  9216. vertical-align: baseline;
  9217. }
  9218. .cont>>>table th {
  9219. border-bottom: 2px solid #ccc;
  9220. text-align: center;
  9221. }
  9222. /* blockquote 样式 */
  9223. .cont>>>blockquote {
  9224. display: block;
  9225. border-left: 8px solid #d0e5f2;
  9226. padding: 5px 10px;
  9227. margin: 10px 0;
  9228. line-height: 1.4;
  9229. font-size: 100%;
  9230. background-color: #f1f1f1;
  9231. }
  9232. /* code 样式 */
  9233. .cont>>>code {
  9234. display: inline-block;
  9235. *display: inline;
  9236. *zoom: 1;
  9237. background-color: #f1f1f1;
  9238. border-radius: 3px;
  9239. padding: 3px 5px;
  9240. margin: 0 3px;
  9241. }
  9242. .cont>>>pre code {
  9243. display: block;
  9244. }
  9245. /* ul ol 样式 */
  9246. .cont>>>ul,
  9247. ol {
  9248. margin: 10px 0 10px 20px;
  9249. }
  9250. .wordbox {
  9251. display: flex;
  9252. flex-wrap: wrap;
  9253. cursor: pointer;
  9254. width: 100%;
  9255. }
  9256. .checkword {
  9257. width: 22px;
  9258. height: 22px;
  9259. margin: 10px auto 0;
  9260. cursor: pointer;
  9261. }
  9262. .checkword img {
  9263. width: 100%;
  9264. }
  9265. .stepBg {
  9266. display: flex;
  9267. flex-direction: column;
  9268. justify-content: space-between;
  9269. align-items: center;
  9270. background: #fff;
  9271. width: 300px;
  9272. margin: 0 25px 0 0;
  9273. }
  9274. .stepTop {
  9275. min-width: 300px;
  9276. width: 300px;
  9277. /* border-radius: 10px; */
  9278. display: flex;
  9279. flex-direction: column;
  9280. justify-content: flex-start;
  9281. align-items: center;
  9282. flex-wrap: nowrap;
  9283. background: #fff;
  9284. /* top: 18%; */
  9285. }
  9286. .stepTop>div {
  9287. height: 65px;
  9288. width: 85%;
  9289. cursor: pointer;
  9290. margin: 10px 0;
  9291. border-radius: 10px;
  9292. }
  9293. .first,
  9294. .second,
  9295. .third,
  9296. .four {
  9297. background: #0061FF;
  9298. height: 90px;
  9299. color: #fff;
  9300. display: flex;
  9301. flex-direction: row;
  9302. align-items: center;
  9303. justify-content: center;
  9304. }
  9305. .cfirst{
  9306. display: flex;
  9307. align-items: center;
  9308. justify-content: flex-start;
  9309. width: 150px;
  9310. }
  9311. .cfirst img{
  9312. width:100%;
  9313. }
  9314. .cfirst > div:nth-child(1){
  9315. margin-right: 5px;
  9316. width: 28px;
  9317. display: flex;
  9318. align-items: center;
  9319. }
  9320. /* .first>div>div:nth-child(1),
  9321. .second>div>div:nth-child(1),
  9322. .third>div>div:nth-child(1),
  9323. .four>div>div:nth-child(1) {
  9324. margin: 0 10px 0 0;
  9325. width: 2rem;
  9326. } */
  9327. .firstNo,
  9328. .secondNo,
  9329. .thirdNo,
  9330. .fourNo {
  9331. background: #e7e7e7;
  9332. color: #adadad;
  9333. display: flex;
  9334. flex-direction: row;
  9335. align-items: center;
  9336. justify-content: center;
  9337. }
  9338. /* .firstNo>div>div:nth-child(1),
  9339. .secondNo>div>div:nth-child(1),
  9340. .thirdNo>div>div:nth-child(1),
  9341. .fourNo>div>div:nth-child(1) {
  9342. margin: 0 10px 0 0;
  9343. width: 2rem;
  9344. } */
  9345. .uploadWidth>>>.el-upload {
  9346. width: 60px;
  9347. height: 60px;
  9348. position: relative;
  9349. }
  9350. .addPeople {
  9351. background: #fa6060;
  9352. width: 150px;
  9353. height: 40px;
  9354. color: #fff;
  9355. border-radius: 5px;
  9356. text-align: center;
  9357. line-height: 40px;
  9358. font-size: 14px;
  9359. cursor: pointer;
  9360. margin-top: 20px;
  9361. }
  9362. .kcImg {
  9363. width: 60px;
  9364. margin-left: 10px;
  9365. }
  9366. .zyImg {
  9367. width: 55px;
  9368. margin: 0 10px;
  9369. }
  9370. .deleteZy {
  9371. width: 20px;
  9372. position: absolute;
  9373. top: 5px;
  9374. right: 5px;
  9375. cursor: pointer;
  9376. }
  9377. .kcImg>img,
  9378. .zyImg>img,
  9379. .deleteZy>img {
  9380. width: 100%;
  9381. height: 100%;
  9382. }
  9383. .zyBox {
  9384. display: flex;
  9385. flex-direction: row;
  9386. align-items: center;
  9387. background: #67d37d;
  9388. color: #fff;
  9389. width: 210px;
  9390. margin: 20px 20px 0 0;
  9391. border-radius: 10px;
  9392. height: 70px;
  9393. position: relative;
  9394. }
  9395. .upCss {
  9396. display: flex;
  9397. flex-direction: row;
  9398. justify-content: flex-start;
  9399. }
  9400. .upCss>>>.el-icon-plus {
  9401. position: none !important;
  9402. width: 200px;
  9403. height: 100px;
  9404. display: flex;
  9405. flex-wrap: nowrap;
  9406. flex-direction: column;
  9407. align-items: center;
  9408. justify-content: center;
  9409. border: 1px dashed #ccc;
  9410. min-width: 78px;
  9411. min-height: 100px;
  9412. z-index: 999;
  9413. }
  9414. .upCss>>>.el-upload-list__item-name {
  9415. width: 100px;
  9416. white-space: nowrap;
  9417. overflow: hidden;
  9418. text-overflow: ellipsis;
  9419. }
  9420. .upCss>>>.el-upload-list__item .el-icon-close {
  9421. font-size: 20px;
  9422. z-index: 9999;
  9423. }
  9424. .addStageImg {
  9425. min-width: 25px;
  9426. min-height: 25px;
  9427. width: 25px;
  9428. height: 25px;
  9429. cursor: pointer;
  9430. }
  9431. .addHW {
  9432. width: 28px;
  9433. height: 28px;
  9434. cursor: pointer;
  9435. }
  9436. .addStageImg>img,
  9437. .addHW>img {
  9438. width: 100%;
  9439. height: 100%;
  9440. }
  9441. .addNewPP>>>.el-dialog__body {
  9442. padding: 5px 20px;
  9443. }
  9444. .isHeight {
  9445. height: 680px;
  9446. }
  9447. .toolChoose {
  9448. display: flex;
  9449. /* width: 100%; */
  9450. flex-direction: row;
  9451. flex-wrap: wrap;
  9452. }
  9453. .tool {
  9454. display: flex;
  9455. flex-direction: column;
  9456. flex-wrap: nowrap;
  9457. width: fit-content;
  9458. margin: 10px 0 10px 0;
  9459. align-items: center;
  9460. }
  9461. .tool+.tool {
  9462. margin-right: 45px;
  9463. }
  9464. .whiteBIcon {
  9465. width: 80px;
  9466. cursor: pointer;
  9467. display: flex;
  9468. flex-direction: column;
  9469. flex-wrap: nowrap;
  9470. align-items: center;
  9471. }
  9472. .whiteBIcon>img,
  9473. .toolIcon>img,
  9474. .arrow>img {
  9475. width: 100%;
  9476. height: 100%;
  9477. }
  9478. .check img {
  9479. width: 20px;
  9480. height: 20px;
  9481. }
  9482. .whiteBIcon>img {
  9483. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  9484. border-radius: 15px;
  9485. }
  9486. .check {
  9487. /* width: 20px;
  9488. height: 20px; */
  9489. cursor: pointer;
  9490. margin: 10px 0;
  9491. }
  9492. .checkDiv {
  9493. display: flex;
  9494. align-items: center;
  9495. }
  9496. .checkDiv span {
  9497. margin-left: 5px;
  9498. color: #858585;
  9499. }
  9500. .customWidth>>>.el-dialog {
  9501. min-width: 500px !important;
  9502. }
  9503. .a_addBox {
  9504. margin: 10px 0;
  9505. background: #fff;
  9506. padding: 15px;
  9507. max-height: 600px;
  9508. overflow: auto;
  9509. }
  9510. .a_add_box {
  9511. border-bottom: 2px solid #eee;
  9512. padding-bottom: 10px;
  9513. }
  9514. .a_add_head {
  9515. display: flex;
  9516. align-items: center;
  9517. justify-content: space-between;
  9518. margin: 10px 0;
  9519. font-size: 18px;
  9520. }
  9521. .a_add_checkType {
  9522. margin-top: 10px;
  9523. display: flex;
  9524. font-size: 16px;
  9525. }
  9526. .a_add_checkType span {
  9527. box-sizing: border-box;
  9528. padding: 0 0 5px 0;
  9529. cursor: pointer;
  9530. }
  9531. .a_add_checkType span+span {
  9532. margin-left: 10px;
  9533. }
  9534. .a_add_checkType .active {
  9535. border-bottom: 2px solid #409eff;
  9536. color: #409eff;
  9537. }
  9538. .a_add_head .a_add_head_input {
  9539. width: 300px;
  9540. }
  9541. .a_add_head .a_add_head_div {
  9542. display: flex;
  9543. align-items: center;
  9544. justify-content: space-between;
  9545. }
  9546. .a_add_body {
  9547. display: flex;
  9548. /* align-items: center; */
  9549. align-items: flex-end;
  9550. }
  9551. .a_add_input {
  9552. display: flex;
  9553. align-items: center;
  9554. flex-wrap: wrap;
  9555. }
  9556. .a_add_input_choice {
  9557. flex-direction: column;
  9558. margin-right: 10px;
  9559. }
  9560. .a_add_input_choice>>>.el-radio {
  9561. display: flex;
  9562. align-items: center;
  9563. flex-direction: row-reverse;
  9564. margin: 10px 0 0 0;
  9565. }
  9566. .a_add_input_choice>>>.el-checkbox {
  9567. display: flex;
  9568. align-items: center;
  9569. flex-direction: row-reverse;
  9570. margin: 10px 0 0 0;
  9571. }
  9572. .width100 {
  9573. width: 100%;
  9574. }
  9575. .a_add_input .a_add_persent {
  9576. width: 100%;
  9577. }
  9578. .a_add_persent_div {
  9579. width: 100%;
  9580. display: flex;
  9581. align-items: center;
  9582. }
  9583. .a_add_persent_div span {
  9584. margin: 5px 0;
  9585. }
  9586. .a_add_persent_div span:nth-child(1) {
  9587. width: 30%;
  9588. }
  9589. .a_add_persent_div span:nth-child(2) {
  9590. width: 7%;
  9591. }
  9592. .a_add_persent_div span:nth-child(3) {
  9593. width: 40%;
  9594. }
  9595. .a_add_body_div {
  9596. display: flex;
  9597. align-items: center;
  9598. justify-content: center;
  9599. /* flex-direction: column; */
  9600. }
  9601. .all_choose {
  9602. display: flex;
  9603. flex-direction: row;
  9604. align-items: flex-start;
  9605. width: 100%;
  9606. }
  9607. .all_choose>span {
  9608. min-width: 80px;
  9609. width: 80px;
  9610. display: block;
  9611. white-space: nowrap;
  9612. overflow: hidden;
  9613. text-overflow: ellipsis;
  9614. text-align-last: justify;
  9615. margin-right: 10px;
  9616. }
  9617. .all_choose>>>.el-checkbox-group {
  9618. display: flex;
  9619. flex-direction: row;
  9620. width: 100%;
  9621. flex-wrap: wrap;
  9622. align-content: center;
  9623. justify-content: flex-start;
  9624. align-items: center;
  9625. margin-top: 3px;
  9626. }
  9627. .all_choose>.el-checkbox-group>>>.el-checkbox {
  9628. margin-bottom: 10px;
  9629. display: flex;
  9630. flex-direction: row;
  9631. align-items: center;
  9632. }
  9633. .all_choose>.el-checkbox-group>.el-checkbox>>>.el-checkbox__label {
  9634. min-width: 80px;
  9635. overflow: hidden;
  9636. width: 80px;
  9637. text-overflow: ellipsis;
  9638. white-space: nowrap;
  9639. }
  9640. .all_choose>.el-checkbox-group>.el-checkbox>>>.el-checkbox__label:hover {
  9641. width: auto;
  9642. }
  9643. .choose>div:nth-child(3)>span {
  9644. /* letter-spacing: 0 !important; */
  9645. }
  9646. .choose {
  9647. display: flex;
  9648. flex-direction: column;
  9649. flex-wrap: nowrap;
  9650. height: 100%;
  9651. justify-content: space-evenly;
  9652. align-items: flex-start;
  9653. }
  9654. .both {
  9655. display: flex;
  9656. flex-direction: row;
  9657. flex-wrap: wrap;
  9658. width: 100%;
  9659. align-items: center;
  9660. justify-content: flex-start;
  9661. margin: 30px 0;
  9662. }
  9663. .subjectBox {
  9664. display: flex;
  9665. flex-wrap: wrap;
  9666. width: 100%;
  9667. align-items: center;
  9668. }
  9669. .subjectList {}
  9670. .subjectBtn {
  9671. margin-left: 10px;
  9672. border-radius: 5px;
  9673. border: 1px dashed #bfbfbf;
  9674. padding: 2px 5px;
  9675. cursor: pointer;
  9676. font-size: 14px;
  9677. color: #545454;
  9678. }
  9679. .notice>>>.el-dialog {
  9680. width: 500px !important;
  9681. text-align: center;
  9682. }
  9683. .notice>>>.el-button {
  9684. margin-top: 20px;
  9685. }
  9686. .whiteBg {
  9687. background: #fff;
  9688. border-radius: 10px;
  9689. }
  9690. .chooseWho {
  9691. display: flex;
  9692. width: 380px;
  9693. flex-direction: row;
  9694. flex-wrap: nowrap;
  9695. justify-content: space-between;
  9696. padding-bottom: 10px;
  9697. }
  9698. .chooseWho>div {
  9699. cursor: pointer;
  9700. padding-bottom: 10px;
  9701. font-weight: bold;
  9702. }
  9703. .isChooseActive {
  9704. color: #3e88f4;
  9705. border-bottom: 2px solid #2f80f3;
  9706. }
  9707. .toolSort {
  9708. display: flex;
  9709. flex-direction: row;
  9710. flex-wrap: wrap;
  9711. justify-content: flex-start;
  9712. align-items: flex-start;
  9713. }
  9714. .toolSort>div {
  9715. margin-right: 45px;
  9716. }
  9717. .tools {
  9718. width: 100%;
  9719. display: flex;
  9720. flex-direction: column;
  9721. flex-wrap: nowrap;
  9722. align-items: flex-start;
  9723. }
  9724. .leftTools,
  9725. .rightTools {
  9726. width: 50%;
  9727. }
  9728. .rightTools {
  9729. display: flex;
  9730. flex-direction: row;
  9731. flex-wrap: nowrap;
  9732. justify-content: space-around;
  9733. }
  9734. .firstToolList {
  9735. display: flex;
  9736. flex-direction: column;
  9737. flex-wrap: nowrap;
  9738. align-items: center;
  9739. }
  9740. .iconList {
  9741. display: flex;
  9742. flex-direction: row;
  9743. flex-wrap: wrap;
  9744. justify-content: flex-start;
  9745. align-items: center;
  9746. margin: 20px 0 5px 0;
  9747. width: 240px;
  9748. min-width: 240px;
  9749. }
  9750. .iconTool {
  9751. display: flex;
  9752. flex-direction: column;
  9753. flex-wrap: nowrap;
  9754. align-items: center;
  9755. justify-content: flex-start;
  9756. margin: 15px 10px;
  9757. }
  9758. .toolIcon {
  9759. width: 50px;
  9760. }
  9761. .taskBorder {
  9762. border: 1px solid #e1e1e1;
  9763. border-radius: 10px;
  9764. margin-top: 20px;
  9765. min-height: 690px;
  9766. position: relative;
  9767. background: #fbfbfb;
  9768. }
  9769. .smallTaskBorder {
  9770. height: 170px;
  9771. min-height: 170px !important;
  9772. overflow: hidden;
  9773. }
  9774. .taskBorder>div {
  9775. padding: 30px 0 10px 30px;
  9776. }
  9777. .addTaskBorder {
  9778. border: 2px solid #e1e1e1;
  9779. border-radius: 10px;
  9780. margin-top: 25px;
  9781. cursor: pointer;
  9782. }
  9783. .addTaskBorder>div {
  9784. margin: 0 auto;
  9785. display: flex;
  9786. align-items: center;
  9787. justify-content: center;
  9788. }
  9789. .addTaskBorder>div>img {
  9790. width: 100px;
  9791. }
  9792. .addTaskBorder>div>span {
  9793. font-size: 23px;
  9794. color: #dbdbdb;
  9795. }
  9796. .task_add_title {
  9797. margin: 50px 0px 10px;
  9798. font-size: 1.5em;
  9799. font-weight: 700;
  9800. color: #0f7eff;
  9801. }
  9802. .task_add_title::after {
  9803. content: "提示:建议不要多账户同时编辑同一个任务";
  9804. font-size: 14px;
  9805. margin-left: 5px;
  9806. font-weight: 400;
  9807. color: #ff3a3a;
  9808. }
  9809. .funBlock {
  9810. display: flex;
  9811. padding: 15px 0;
  9812. flex-direction: row;
  9813. justify-content: flex-end;
  9814. align-items: center;
  9815. position: absolute;
  9816. right: 15px;
  9817. bottom: 35px;
  9818. }
  9819. .fold {
  9820. display: flex;
  9821. margin: 0 10px;
  9822. flex-direction: row;
  9823. align-items: center;
  9824. cursor: pointer;
  9825. }
  9826. .arrow {
  9827. width: 15px;
  9828. height: 15px;
  9829. margin-left: 10px;
  9830. }
  9831. .addToolFunBox {
  9832. display: flex;
  9833. width: 100%;
  9834. align-items: center;
  9835. justify-content: center;
  9836. margin-bottom: 35px;
  9837. }
  9838. .addToolFun+.addToolFun {
  9839. margin-left: 10px;
  9840. }
  9841. .addToolFun {
  9842. display: flex;
  9843. width: 150px;
  9844. flex-direction: row;
  9845. align-items: center;
  9846. justify-content: center;
  9847. border: 1px dashed;
  9848. border-radius: 5px;
  9849. height: 50px;
  9850. /* margin: 35px auto 0; */
  9851. cursor: pointer;
  9852. }
  9853. .addToolImg {
  9854. width: 30px;
  9855. height: 30px;
  9856. margin-right: 20px;
  9857. }
  9858. .addToolsDia>>>.el-dialog__body {
  9859. padding: 20px;
  9860. }
  9861. .addToolsDia>>>.el-dialog__body>.toolChoose {
  9862. padding: 0;
  9863. }
  9864. .addToolsDia>>>.el-dialog__body>.toolChoose>.leftTools {
  9865. padding: 0;
  9866. border-bottom: none;
  9867. margin-bottom: 0;
  9868. }
  9869. .addToolsDia>>>.el-dialog__body>.toolChoose>.leftTools>.chooseWho {
  9870. width: 100%;
  9871. }
  9872. .lineCss>>>.el-form-item__label {
  9873. width: auto !important;
  9874. }
  9875. .lineCss>>>.el-form-item__content {
  9876. margin-left: 50px !important;
  9877. }
  9878. .newSteps {
  9879. display: flex;
  9880. width: 100% !important;
  9881. height: 80px;
  9882. cursor: pointer;
  9883. margin: 10px 0;
  9884. border-radius: 10px;
  9885. flex-direction: row;
  9886. align-content: center;
  9887. justify-content: center;
  9888. align-items: center;
  9889. margin: 0 !important;
  9890. }
  9891. /* 评价样式 */
  9892. .elist_css {
  9893. padding-bottom: 60px !important;
  9894. }
  9895. .elist_title {
  9896. margin-bottom: 10px;
  9897. }
  9898. .elist_input {}
  9899. .elist_input_box {
  9900. display: flex;
  9901. align-items: center;
  9902. flex-wrap: wrap;
  9903. }
  9904. .elist_input_box+.elist_input_box {
  9905. margin-top: 30px;
  9906. }
  9907. .elist_input .elist_input_box input {
  9908. font: inherit;
  9909. color: currentColor;
  9910. /* width: 200px; */
  9911. max-width: 200px;
  9912. padding: 8px 14px;
  9913. display: block;
  9914. min-width: 0;
  9915. outline: none;
  9916. border: 1px solid rgba(0, 0, 0, 0.23);
  9917. border-radius: 4px;
  9918. box-sizing: border-box;
  9919. background: #fff;
  9920. margin: 0 20px 0 0;
  9921. }
  9922. .elist_input .elist_input_box span {
  9923. height: 36px;
  9924. line-height: 36px;
  9925. color: rgb(82, 82, 82);
  9926. min-width: 80px;
  9927. }
  9928. .elist_input .elist_input_box .remove {
  9929. height: 20px;
  9930. width: 20px;
  9931. background-size: 100% 100%;
  9932. background-position: unset;
  9933. margin-left: 5px;
  9934. }
  9935. .elist_input_box>>>.el-rate {
  9936. display: flex;
  9937. height: 36px;
  9938. align-items: center;
  9939. }
  9940. .elist_input_box .elist_inptu_text {
  9941. width: 100%;
  9942. display: flex;
  9943. align-items: center;
  9944. margin-top: 10px;
  9945. }
  9946. .elist_input_box .elist_inptu_text input {
  9947. /* width: 500px; */
  9948. width: 100%;
  9949. max-width: unset;
  9950. }
  9951. .elist_input_box>>>.el-rate__icon {
  9952. font-size: 24px;
  9953. }
  9954. .elist_btn {
  9955. margin-top: 10px;
  9956. }
  9957. .lineTitle {
  9958. margin-top: 15px;
  9959. width: 110px;
  9960. }
  9961. .courseTop {
  9962. display: flex;
  9963. flex-direction: row;
  9964. justify-content: flex-start;
  9965. align-items: center;
  9966. /* width: 100%; */
  9967. width: calc(100% - 20px);
  9968. /* background: rgb(255, 255, 255); */
  9969. /* border-radius: 10px; */
  9970. padding: 20px 0;
  9971. }
  9972. .stepsNav {
  9973. display: flex;
  9974. flex-direction: row;
  9975. justify-content: flex-start;
  9976. align-items: center;
  9977. }
  9978. .stepsWord {
  9979. font-size: 18px;
  9980. color: #fff;
  9981. font-weight: bold;
  9982. margin-left: auto;
  9983. background: rgb(15, 126, 255);
  9984. border-radius: 5px;
  9985. padding: 3px 25px;
  9986. box-sizing: border-box;
  9987. }
  9988. .rightBox {
  9989. width: calc(100% - 20px);
  9990. background: rgb(255, 255, 255);
  9991. border-radius: 10px;
  9992. overflow: auto;
  9993. height: calc(100% - 130px);
  9994. position: relative;
  9995. }
  9996. .e_add_top {
  9997. display: flex;
  9998. justify-content: space-between;
  9999. padding: 20px 20px 0 20px;
  10000. border-radius: 3px;
  10001. background: #fff;
  10002. }
  10003. .e_add_title2 {
  10004. display: flex;
  10005. align-items: center;
  10006. }
  10007. .e_add_title2 span {
  10008. width: 40px;
  10009. }
  10010. .e_add_title {
  10011. display: flex;
  10012. align-items: center;
  10013. color: #b8b8b8;
  10014. font-size: 18px;
  10015. position: relative;
  10016. height: 40px;
  10017. }
  10018. .e_add_title span {
  10019. margin-right: 10px;
  10020. }
  10021. .e_add_title .el_input {
  10022. width: 300px;
  10023. }
  10024. .e_add_title>>>.el-input__inner {
  10025. width: 400px;
  10026. }
  10027. .e_add_btn {}
  10028. .e_add_content {
  10029. display: flex;
  10030. width: 100%;
  10031. }
  10032. .e_add_list {
  10033. background: #fff;
  10034. height: 500px;
  10035. width: 210px;
  10036. position: relative;
  10037. margin: 15px 5px 0 0;
  10038. flex-shrink: 0;
  10039. display: flex;
  10040. flex-direction: column;
  10041. }
  10042. .e_add_list_title {
  10043. font-size: 20px;
  10044. width: 100%;
  10045. box-sizing: border-box;
  10046. padding: 15px 40px;
  10047. text-align: center;
  10048. border-bottom: 1px solid #eaeaea;
  10049. position: relative;
  10050. display: flex;
  10051. align-items: center;
  10052. justify-content: center;
  10053. height: 57px;
  10054. background: #f6f6f6;
  10055. }
  10056. .e_add_list_title span {
  10057. overflow: hidden;
  10058. white-space: nowrap;
  10059. text-overflow: ellipsis;
  10060. }
  10061. .e_add_list_title img {
  10062. position: absolute;
  10063. right: 15px;
  10064. width: 25px;
  10065. cursor: pointer;
  10066. top: 50%;
  10067. transform: translateY(-50%);
  10068. }
  10069. .e_add_list_body {
  10070. height: calc(100% - 187px);
  10071. overflow: auto;
  10072. }
  10073. .e_add_list_child {
  10074. width: 100%;
  10075. display: flex;
  10076. align-items: center;
  10077. justify-content: center;
  10078. position: relative;
  10079. box-sizing: border-box;
  10080. padding: 15px 40px;
  10081. text-align: center;
  10082. }
  10083. .e_add_list_child span {
  10084. overflow: hidden;
  10085. white-space: nowrap;
  10086. text-overflow: ellipsis;
  10087. cursor: pointer;
  10088. }
  10089. .e_add_list_child img {
  10090. position: absolute;
  10091. right: 10px;
  10092. width: 21px;
  10093. cursor: pointer;
  10094. top: 50%;
  10095. transform: translateY(-50%);
  10096. }
  10097. .e_add_list_child+.e_add_list_child {
  10098. border-top: 1px solid #eaeaea;
  10099. }
  10100. .e_add_list_child .active {
  10101. color: #409eff;
  10102. }
  10103. .e_add_list_btn {
  10104. position: absolute;
  10105. bottom: 0;
  10106. height: 50px;
  10107. background: rgb(120, 120, 254);
  10108. width: 100%;
  10109. color: #fff;
  10110. font-size: 16px;
  10111. text-align: center;
  10112. line-height: 50px;
  10113. cursor: pointer;
  10114. }
  10115. .e_add_list_detail {
  10116. position: absolute;
  10117. bottom: 0;
  10118. height: 130px;
  10119. background: rgb(120, 120, 254);
  10120. width: 100%;
  10121. color: #fff;
  10122. font-size: 16px;
  10123. display: flex;
  10124. align-items: center;
  10125. justify-content: center;
  10126. }
  10127. .e_add_list_detail textarea {
  10128. height: 90%;
  10129. width: 95%;
  10130. border: none;
  10131. resize: none;
  10132. outline: none;
  10133. padding: 5px;
  10134. box-sizing: border-box;
  10135. }
  10136. .e_add_list_pbox {
  10137. width: 100%;
  10138. }
  10139. .e_add_list_pbox_title {
  10140. height: 50px;
  10141. background: #fff;
  10142. display: flex;
  10143. align-items: center;
  10144. width: 100%;
  10145. box-sizing: border-box;
  10146. padding: 0 20px;
  10147. flex-direction: row;
  10148. flex-wrap: wrap;
  10149. }
  10150. .type_title {
  10151. font-size: 18px;
  10152. font-weight: 700;
  10153. }
  10154. .type_content {
  10155. font-size: 16px;
  10156. margin-left: 30px;
  10157. }
  10158. .type_content span+span {
  10159. margin-left: 20px;
  10160. }
  10161. .type_content span {
  10162. cursor: pointer;
  10163. padding-bottom: 5px;
  10164. box-sizing: border-box;
  10165. }
  10166. .type_content .active {
  10167. color: #409eff;
  10168. border-bottom: 2px solid #409eff;
  10169. }
  10170. .e_add_list_pbox_content {
  10171. height: calc(100% - 50px);
  10172. display: flex;
  10173. align-items: center;
  10174. width: 100%;
  10175. background: #fff;
  10176. }
  10177. .mbCss {
  10178. width: 100%;
  10179. display: flex;
  10180. flex-direction: row;
  10181. flex-wrap: nowrap;
  10182. align-content: center;
  10183. align-items: flex-start;
  10184. justify-content: flex-start;
  10185. }
  10186. .pjCss {
  10187. /* width: 42%; */
  10188. width: calc(100% - 55%);
  10189. display: flex;
  10190. flex-direction: column;
  10191. flex-wrap: nowrap;
  10192. align-items: flex-start;
  10193. margin-top: 1.5%;
  10194. }
  10195. .e_box {
  10196. display: flex;
  10197. flex-wrap: wrap;
  10198. max-height: 500px;
  10199. align-items: flex-start;
  10200. overflow: auto;
  10201. }
  10202. .e_card {
  10203. border: 1px solid #ccc;
  10204. background: #fff;
  10205. margin-right: 20px;
  10206. width: 270px;
  10207. display: flex;
  10208. flex-direction: column;
  10209. align-items: center;
  10210. border-radius: 5px;
  10211. margin-top: 10px;
  10212. text-align: center;
  10213. }
  10214. .e_card_picture {
  10215. margin: 10px 0;
  10216. }
  10217. .e_card_picture>img {
  10218. width: 50px;
  10219. }
  10220. .e_card_name {
  10221. width: 100%;
  10222. padding: 0 10px;
  10223. box-sizing: border-box;
  10224. margin-bottom: 10px;
  10225. overflow: hidden;
  10226. text-overflow: ellipsis;
  10227. white-space: nowrap;
  10228. }
  10229. .e_card_time {
  10230. width: 100%;
  10231. padding: 0 10px;
  10232. box-sizing: border-box;
  10233. font-size: 15px;
  10234. color: #c3c3c3;
  10235. margin-bottom: 10px;
  10236. }
  10237. .e_card_btn {
  10238. height: 40px;
  10239. display: flex;
  10240. align-items: center;
  10241. width: 100%;
  10242. background: rgb(244, 244, 244);
  10243. }
  10244. .e_card_btn:hover {
  10245. background: rgb(221 221 221);
  10246. }
  10247. .e_card_btn span {
  10248. flex: 1 1 auto;
  10249. text-align: center;
  10250. cursor: pointer;
  10251. }
  10252. .addEva {
  10253. border: 1px solid #ccc;
  10254. background: #fff;
  10255. margin-right: 20px;
  10256. width: 270px;
  10257. height: 149px;
  10258. display: flex;
  10259. flex-direction: column;
  10260. align-items: center;
  10261. border-radius: 5px;
  10262. margin-top: 10px;
  10263. text-align: center;
  10264. cursor: pointer;
  10265. justify-content: center;
  10266. }
  10267. .addEva>img {
  10268. width: 50px;
  10269. object-fit: cover;
  10270. }
  10271. .uploadFm {
  10272. border: 1px dashed #ccc;
  10273. width: 202px;
  10274. height: 102px;
  10275. position: relative;
  10276. cursor: pointer;
  10277. }
  10278. .uploadFm>img {
  10279. position: absolute;
  10280. top: 25px;
  10281. left: 35%;
  10282. width: 50px;
  10283. }
  10284. .fileCss {
  10285. width: 100%;
  10286. display: flex;
  10287. flex-direction: row;
  10288. flex-wrap: nowrap;
  10289. justify-content: space-around;
  10290. align-items: center;
  10291. padding-top: 15px;
  10292. }
  10293. .sysPicBox {
  10294. display: flex;
  10295. flex-direction: row;
  10296. flex-wrap: wrap;
  10297. align-content: flex-start;
  10298. height: 435px;
  10299. overflow: auto;
  10300. }
  10301. .sysPic {
  10302. width: 200px;
  10303. height: 115px;
  10304. margin: 0 20px 20px 0;
  10305. cursor: pointer;
  10306. }
  10307. .sysPic>img,
  10308. .isSysPic>img,
  10309. .deletePic>img {
  10310. width: 100%;
  10311. height: 100%;
  10312. object-fit: cover;
  10313. }
  10314. .isSysPic {
  10315. width: 200px;
  10316. height: 115px;
  10317. position: relative;
  10318. }
  10319. .deletePic {
  10320. width: 20px;
  10321. height: 20px;
  10322. position: absolute;
  10323. top: 0;
  10324. right: 0;
  10325. cursor: pointer;
  10326. }
  10327. .select_box1 {}
  10328. .select_box1_img {
  10329. background: #fff;
  10330. border-radius: 5px;
  10331. padding: 15px;
  10332. box-sizing: border-box;
  10333. margin-bottom: 20px;
  10334. }
  10335. .select_box1_title {
  10336. padding: 0 0 15px 0;
  10337. border-bottom: 1px solid #eee;
  10338. margin-bottom: 15px;
  10339. }
  10340. .select_box1_title span:nth-child(1) {
  10341. font-size: 16px;
  10342. margin-right: 20px;
  10343. color: #000;
  10344. }
  10345. .select_box1_title span:nth-child(2) {
  10346. font-size: 14px;
  10347. color: rgb(112, 112, 112);
  10348. }
  10349. .select_box1_add_img {}
  10350. .select_box1_select {
  10351. background: #fff;
  10352. border-radius: 5px;
  10353. padding: 15px;
  10354. box-sizing: border-box;
  10355. }
  10356. .select_box2 {}
  10357. .select_box2_title {
  10358. background: #fff;
  10359. border-radius: 5px;
  10360. padding: 5px 10px;
  10361. box-sizing: border-box;
  10362. margin-bottom: 10px;
  10363. }
  10364. .select_box2_box {
  10365. display: flex;
  10366. height: 500px;
  10367. }
  10368. .select_box2_img {
  10369. width: calc(100% - 310px);
  10370. height: 100%;
  10371. overflow: auto;
  10372. background: #fff;
  10373. border-radius: 5px;
  10374. }
  10375. .select_box2_img img {
  10376. width: 100%;
  10377. }
  10378. .select_box2_answer {
  10379. background: #fff;
  10380. margin-left: 10px;
  10381. border-radius: 5px;
  10382. width: 300px;
  10383. overflow: auto;
  10384. height: 100%;
  10385. display: flex;
  10386. flex-direction: column;
  10387. align-items: center;
  10388. padding-top: 10px;
  10389. box-sizing: border-box;
  10390. }
  10391. .select_box2_answer_box {
  10392. margin: 0 0 10px 0;
  10393. width: 85%;
  10394. }
  10395. .rate_textarea {
  10396. font: inherit;
  10397. color: currentColor;
  10398. width: 100%;
  10399. padding: 8px 14px;
  10400. display: block;
  10401. min-width: 0;
  10402. outline: none;
  10403. border: 1px solid rgba(0, 0, 0, 0.23);
  10404. border-radius: 4px;
  10405. box-sizing: border-box;
  10406. background: #fff;
  10407. margin: 0 20px 0 0;
  10408. resize: none;
  10409. }
  10410. .select_answer_title {
  10411. text-align: left;
  10412. width: 85%;
  10413. margin-bottom: 10px;
  10414. font-size: 18px;
  10415. color: #8e8e8e;
  10416. }
  10417. .mask {
  10418. background-color: rgb(0 0 0 / 30%);
  10419. /* position: fixed; */
  10420. position: absolute;
  10421. top: 0;
  10422. left: 0;
  10423. width: 100%;
  10424. height: 100%;
  10425. z-index: 90;
  10426. display: flex;
  10427. align-items: center;
  10428. justify-content: center;
  10429. }
  10430. .mask2 {
  10431. position: fixed !important;
  10432. z-index: 999999;
  10433. }
  10434. .progressBox {
  10435. width: 300px;
  10436. height: 150px;
  10437. background: #fff;
  10438. border-radius: 10px;
  10439. box-shadow: 0 0 6px 1px #bfbfbf;
  10440. display: flex;
  10441. align-items: center;
  10442. justify-content: center;
  10443. flex-direction: column;
  10444. position: relative;
  10445. color: #6c6c6c;
  10446. }
  10447. .progressBox .lbox {
  10448. height: 80px;
  10449. font-size: 16px;
  10450. display: flex;
  10451. align-items: center;
  10452. }
  10453. .progressBox .lbox img {
  10454. width: 40px;
  10455. margin-right: 20px;
  10456. }
  10457. .progressBox>>>.el-progress-bar__outer {
  10458. background-color: #d1dfff !important;
  10459. }
  10460. .mask .lbox2 {
  10461. height: 100%;
  10462. width: 100%;
  10463. font-size: 19px;
  10464. display: flex;
  10465. align-items: center;
  10466. justify-content: center;
  10467. }
  10468. .mask .lbox2 img {
  10469. width: 40px;
  10470. }
  10471. .updateTips::after {
  10472. content: "他人课程暂不支持修改基本信息,只支持修改阶段内容。";
  10473. font-size: 14px;
  10474. margin-left: 20px;
  10475. font-weight: 400;
  10476. color: #ff3a3a;
  10477. }
  10478. .updateMask {
  10479. width: 100%;
  10480. z-index: 3;
  10481. top: 0;
  10482. position: absolute;
  10483. }
  10484. .t_j_box {
  10485. display: flex;
  10486. }
  10487. .t_j_box span:nth-child(1) {
  10488. width: 15%;
  10489. overflow: hidden;
  10490. margin-right: 10px;
  10491. text-overflow: ellipsis;
  10492. white-space: nowrap;
  10493. }
  10494. .t_j_box span:nth-child(2) {
  10495. min-width: 30px;
  10496. margin-right: 10px;
  10497. }
  10498. .t_j_box span:nth-child(3) {
  10499. width: 38%;
  10500. overflow: hidden;
  10501. text-overflow: ellipsis;
  10502. margin-right: 10px;
  10503. }
  10504. .t_j_box span:nth-child(4) {
  10505. max-width: calc(45% - 60px);
  10506. overflow: hidden;
  10507. text-overflow: ellipsis;
  10508. }
  10509. .sentenBox {
  10510. background: #fff;
  10511. height: 600px;
  10512. overflow: auto;
  10513. background-image: url("../../../assets/icon/conSentences/csBg.png");
  10514. background-position: 102%;
  10515. background-repeat: no-repeat;
  10516. background-size: 60%;
  10517. }
  10518. .addSen {
  10519. background: #409efe;
  10520. width: 90px;
  10521. color: #fff;
  10522. height: 35px;
  10523. text-align: center;
  10524. line-height: 35px;
  10525. border-radius: 5px;
  10526. float: right;
  10527. margin: 10px 20px 0 0;
  10528. cursor: pointer;
  10529. }
  10530. .sentenTop {
  10531. display: flex;
  10532. flex-direction: row;
  10533. flex-wrap: nowrap;
  10534. align-items: center;
  10535. }
  10536. .sentenTop>div:nth-child(2) {
  10537. width: 300px;
  10538. margin: 0 15px;
  10539. }
  10540. .sentenTop>div:nth-child(3) {
  10541. background: #409efe;
  10542. color: #fff;
  10543. width: 65px;
  10544. height: 35px;
  10545. text-align: center;
  10546. line-height: 35px;
  10547. border-radius: 5px;
  10548. cursor: pointer;
  10549. }
  10550. .cardList {
  10551. padding: 30px 0 20px 0;
  10552. display: flex;
  10553. flex-direction: row;
  10554. flex-wrap: wrap;
  10555. align-items: center;
  10556. box-sizing: border-box;
  10557. border-bottom: 1px solid #f4f4f4;
  10558. width: 98%;
  10559. margin: 0 auto;
  10560. }
  10561. .cardBox {
  10562. display: flex;
  10563. flex-direction: row;
  10564. flex-wrap: wrap;
  10565. align-items: center;
  10566. align-content: center;
  10567. }
  10568. .isCard,
  10569. .isCard1 {
  10570. width: 140px;
  10571. height: 65px;
  10572. text-align: center;
  10573. line-height: 65px;
  10574. font-size: 20px;
  10575. cursor: pointer;
  10576. background-image: url("../../../assets/icon/conSentences/titleBorder.png");
  10577. background-size: cover;
  10578. position: relative;
  10579. z-index: 99;
  10580. }
  10581. .isCard1 {
  10582. background-image: url("../../../assets/icon/conSentences/answerBorder.png");
  10583. }
  10584. .isCard:hover .deleteWord {
  10585. display: block;
  10586. }
  10587. .isCard>div:nth-child(1),
  10588. .isCard1>div:nth-child(1) {
  10589. white-space: nowrap;
  10590. overflow: hidden;
  10591. text-overflow: ellipsis;
  10592. width: 80%;
  10593. margin: 0 auto;
  10594. }
  10595. .card {
  10596. width: 140px;
  10597. height: 65px;
  10598. }
  10599. .card>img {
  10600. width: 100%;
  10601. height: 100%;
  10602. }
  10603. .rightCardBox {
  10604. margin: 10px 0 0 10px;
  10605. }
  10606. .rightCardBox>div:nth-child(1) {
  10607. margin-bottom: 10px;
  10608. }
  10609. .cardCss {
  10610. display: flex;
  10611. flex-direction: column;
  10612. flex-wrap: nowrap;
  10613. align-items: center;
  10614. border-bottom: 3px solid #b4c3d3;
  10615. padding: 0 0 5px 0;
  10616. margin-right: 10px;
  10617. }
  10618. .cardCss>div:nth-child(2) {
  10619. background: #5b7b9d;
  10620. color: #fff;
  10621. width: 20px;
  10622. height: 20px;
  10623. border-radius: 50%;
  10624. text-align: center;
  10625. line-height: 20px;
  10626. }
  10627. .sentenTopBox {
  10628. display: flex;
  10629. flex-direction: row;
  10630. flex-wrap: nowrap;
  10631. align-items: center;
  10632. justify-content: space-between;
  10633. padding: 55px 0 0 20px;
  10634. box-sizing: border-box;
  10635. width: 85%;
  10636. }
  10637. .stepsBottom {
  10638. width: 85%;
  10639. margin-bottom: 20px;
  10640. box-shadow: 0 0 10px 10px #f7f7f7;
  10641. background: #f7f7f7;
  10642. border-radius: 10px;
  10643. overflow: hidden;
  10644. }
  10645. .navTop {
  10646. background: #53749b;
  10647. color: #fff;
  10648. height: 40px;
  10649. line-height: 40px;
  10650. padding-left: 15px;
  10651. font-size: 18px;
  10652. }
  10653. .navBottom {
  10654. background: #6b91b7;
  10655. height: 180px;
  10656. overflow: auto;
  10657. }
  10658. .navTask {
  10659. display: flex;
  10660. flex-direction: row;
  10661. flex-wrap: nowrap;
  10662. align-items: center;
  10663. padding: 5px 5px 5px 0;
  10664. cursor: pointer;
  10665. background: #ffffff;
  10666. width: 95%;
  10667. margin: 10px auto;
  10668. box-sizing: border-box;
  10669. border-radius: 5px;
  10670. }
  10671. .isNavTask {
  10672. /* background: #7e9ebd; */
  10673. }
  10674. .navTask>div:nth-child(1) {
  10675. background: #468fe4;
  10676. color: #fff;
  10677. width: 65px;
  10678. height: 25px;
  10679. line-height: 25px;
  10680. text-align: center;
  10681. border-radius: 5px;
  10682. margin: 0 10px 0 5px;
  10683. font-size: 14px;
  10684. }
  10685. .navTask>div:nth-child(2) {
  10686. /* color: #fff; */
  10687. /* max-width: 130px; */
  10688. width: 130px;
  10689. white-space: nowrap;
  10690. overflow: hidden;
  10691. text-overflow: ellipsis;
  10692. font-size: 15px;
  10693. }
  10694. .groupBox {}
  10695. .groupContent+.groupContent {
  10696. margin-top: 30px;
  10697. }
  10698. .groupTitle {
  10699. font-size: 24px;
  10700. color: rgb(80, 80, 80);
  10701. margin-bottom: 20px;
  10702. }
  10703. .groupName {
  10704. display: flex;
  10705. align-items: center;
  10706. }
  10707. .groupn {
  10708. font-size: 15px;
  10709. margin-right: 10px;
  10710. }
  10711. .groupName+.groupName {
  10712. margin-top: 15px;
  10713. }
  10714. .groupBtn {
  10715. margin-left: 10px;
  10716. }
  10717. .groupContent>>>.el-input-number.is-without-controls .el-input__inner {
  10718. text-align: left;
  10719. }
  10720. .toolimg {
  10721. width: 200px;
  10722. border-radius: 10px;
  10723. box-shadow: rgb(223 218 218) 0px 0px 6px 1px;
  10724. cursor: pointer;
  10725. overflow: hidden;
  10726. position: relative;
  10727. }
  10728. .toolimg>img {
  10729. width: 100%;
  10730. height: 105px;
  10731. object-fit: contain;
  10732. }
  10733. .proMan {
  10734. width: 95%;
  10735. margin: 0 auto;
  10736. padding: 0 0 20px;
  10737. margin-top: 20px;
  10738. }
  10739. .proMan .title {
  10740. margin-bottom: 10px;
  10741. display: flex;
  10742. align-items: center;
  10743. }
  10744. .proMan .title img {
  10745. margin-right: 5px;
  10746. height: 17px;
  10747. width: 17px;
  10748. }
  10749. .ed_s>>>.text {
  10750. height: calc(100% - 42px);
  10751. }
  10752. .toolimg_box {
  10753. display: flex;
  10754. flex-wrap: wrap;
  10755. }
  10756. .toolimg {
  10757. margin: 0 20px 20px 0;
  10758. }
  10759. .comment {
  10760. background: #f5f5f5;
  10761. /* border-radius: 0 0 15px 15px; */
  10762. display: flex;
  10763. flex-direction: row;
  10764. flex-wrap: nowrap;
  10765. align-items: center;
  10766. justify-content: flex-end;
  10767. height: 35px;
  10768. }
  10769. .worksName {
  10770. display: flex;
  10771. width: 92%;
  10772. flex-direction: row;
  10773. flex-wrap: nowrap;
  10774. justify-content: space-between;
  10775. align-items: center;
  10776. margin: 0 10px;
  10777. }
  10778. .worksName>div:nth-child(1) {
  10779. width: 60px;
  10780. white-space: nowrap;
  10781. overflow: hidden;
  10782. text-overflow: ellipsis;
  10783. }
  10784. .worksName>div:nth-child(2) {
  10785. max-width: calc(100% - 70px);
  10786. position: relative;
  10787. display: flex;
  10788. align-items: center;
  10789. }
  10790. .worksName>div:nth-child(2)>span {
  10791. width: 100%;
  10792. white-space: nowrap;
  10793. overflow: hidden;
  10794. text-overflow: ellipsis;
  10795. color: #4e91c4;
  10796. }
  10797. .worksName>div:nth-child(2)>img {
  10798. max-width: 16px;
  10799. width: 16px;
  10800. height: 15px;
  10801. }
  10802. .deleteImg {
  10803. width: 25px !important;
  10804. height: 25px !important;
  10805. cursor: pointer;
  10806. position: absolute;
  10807. top: 10px;
  10808. right: 10px;
  10809. }
  10810. .texttitle {
  10811. background: #1e5cc9;
  10812. /* width: 98%; */
  10813. height: 45px;
  10814. color: #fff;
  10815. line-height: 45px;
  10816. padding-left: 20px;
  10817. box-sizing: border-box;
  10818. }
  10819. .textBox {
  10820. font-size: 20px;
  10821. width: 90%;
  10822. display: flex;
  10823. flex-direction: column;
  10824. align-items: center;
  10825. margin: 20px auto 0;
  10826. }
  10827. .textContent {
  10828. font-size: 18px;
  10829. height: 450px;
  10830. width: 95%;
  10831. overflow: auto;
  10832. line-height: 30px;
  10833. }
  10834. .vedioTaskBox {
  10835. width: 100%;
  10836. display: flex;
  10837. flex-direction: row;
  10838. flex-wrap: nowrap;
  10839. align-items: center;
  10840. }
  10841. .box_course {
  10842. /* width: 60%; */
  10843. width: 81%;
  10844. }
  10845. .wheel {
  10846. width: 100%;
  10847. height: 100%;
  10848. }
  10849. .vedioList {
  10850. /* background: #f2f2f2; */
  10851. background: #fff;
  10852. border: 1px solid #ececec;
  10853. /* width: 38.8%; */
  10854. width: calc(100% - 83%);
  10855. height: 650px;
  10856. border-radius: 10px;
  10857. overflow: hidden;
  10858. }
  10859. .navTitile {
  10860. padding: 0 0px 0 15px;
  10861. background: #1e5cc9;
  10862. color: #fff;
  10863. height: 40px;
  10864. line-height: 40px;
  10865. border-top-left-radius: 10px;
  10866. border-top-right-radius: 10px;
  10867. }
  10868. .navBox {
  10869. background: rgb(255, 255, 255);
  10870. height: calc(100% - 40px);
  10871. padding: 5px 1px 0 1px;
  10872. overflow: auto;
  10873. }
  10874. .vedioTimeBox {
  10875. display: flex;
  10876. flex-direction: row;
  10877. align-items: center;
  10878. flex-wrap: nowrap;
  10879. position: relative;
  10880. }
  10881. .vedioName {
  10882. cursor: pointer;
  10883. margin: 0px 0px 10px 5px;
  10884. white-space: nowrap;
  10885. overflow: hidden;
  10886. text-overflow: ellipsis;
  10887. width: 100%;
  10888. }
  10889. .isClickNav {
  10890. color: #499eef;
  10891. }
  10892. .full_diy>>>.el-dialog {
  10893. margin: 0 !important;
  10894. height: 100%;
  10895. padding: 4px;
  10896. }
  10897. .full_diy>>>.el-dialog__body {
  10898. height: calc(100% - 100px);
  10899. }
  10900. .full_diy2>>>.el-dialog__body {
  10901. height: calc(100% - 50px);
  10902. padding: 0;
  10903. }
  10904. .queTop {
  10905. display: flex;
  10906. padding: 20px 0 20px 30px;
  10907. width: 100%;
  10908. flex-direction: row;
  10909. justify-content: flex-start;
  10910. align-items: center;
  10911. border-bottom: 1px solid #eeeeee;
  10912. box-sizing: border-box;
  10913. }
  10914. .question {
  10915. width: 40px;
  10916. margin-right: 10px;
  10917. margin-top: 7px;
  10918. }
  10919. .queTitle {
  10920. margin-left: 5px;
  10921. font-size: 25px;
  10922. display: flex;
  10923. align-items: center;
  10924. }
  10925. .addEditor {
  10926. width: 100px;
  10927. height: 30px;
  10928. background: #42cda6;
  10929. color: #fff;
  10930. border-radius: 5px;
  10931. text-align: center;
  10932. line-height: 30px;
  10933. box-shadow: 1px 3px 6px 1px #bfbfbf;
  10934. cursor: pointer;
  10935. }
  10936. .answerWidth {
  10937. width: 250px !important;
  10938. }
  10939. .answerBg {
  10940. background: url("../../../assets/icon/answerBgNew.png") no-repeat;
  10941. background-size: cover;
  10942. width: 100%;
  10943. height: 120px;
  10944. padding: 0 10px;
  10945. box-sizing: border-box;
  10946. color: #fff;
  10947. text-align: center;
  10948. display: flex;
  10949. flex-direction: column;
  10950. flex-wrap: nowrap;
  10951. align-items: center;
  10952. position: relative;
  10953. justify-content: center;
  10954. }
  10955. .answerContent {
  10956. /* width: 215px; */
  10957. max-height: 60px;
  10958. word-break: break-all;
  10959. text-align: center;
  10960. /* white-space: nowrap; */
  10961. overflow: hidden;
  10962. text-overflow: ellipsis;
  10963. /* padding: 23px 0 0; */
  10964. -webkit-line-clamp: 3;
  10965. -webkit-box-orient: vertical;
  10966. display: -webkit-box;
  10967. font-size: 15px;
  10968. }
  10969. .fullStyle>>>.el-dialog__body {
  10970. height: 100% !important;
  10971. }
  10972. .fullStyle>>>.el-dialog,
  10973. .fullStyle {
  10974. width: 100% !important;
  10975. max-width: 100% !important;
  10976. height: 100% !important;
  10977. margin: 0 !important;
  10978. }
  10979. .tcMember+.tcMember::before {
  10980. content: "、";
  10981. }
  10982. .tcMember_box {
  10983. margin-left: 10px;
  10984. border: 1px solid #c0c4cc;
  10985. padding: 10px 14px;
  10986. border-radius: 4px;
  10987. background: #fff;
  10988. cursor: pointer;
  10989. color: #606266;
  10990. font-size: 14px;
  10991. width: 225px;
  10992. overflow: hidden;
  10993. text-overflow: ellipsis;
  10994. white-space: nowrap;
  10995. }
  10996. .upCss>>>.el-upload-list--picture .el-upload-list__item {
  10997. height: auto;
  10998. }
  10999. .upCss>>>.el-upload-list--picture .el-upload-list__item-thumbnail {
  11000. width: 200px;
  11001. height: 100px;
  11002. object-fit: contain;
  11003. background: unset;
  11004. }
  11005. .upCss>>>.el-upload-list--picture .el-upload-list__item.is-success .el-upload-list__item-name {
  11006. display: none;
  11007. }
  11008. .redioStyle>>>.el-radio__input.is-checked+.el-radio__label {
  11009. color: rgb(0 123 255) !important;
  11010. }
  11011. .redioStyle>>>.el-checkbox__input.is-checked+.el-checkbox__label {
  11012. color: rgb(0 123 255) !important;
  11013. }
  11014. .closeCss {
  11015. position: absolute;
  11016. top: 8px;
  11017. right: 8px;
  11018. cursor: pointer;
  11019. width: 20px;
  11020. height: 20px;
  11021. }
  11022. .closeCss>img {
  11023. width: 100%;
  11024. height: 100%;
  11025. }
  11026. .f_size_box {
  11027. display: flex;
  11028. margin: 5px 0px;
  11029. align-items: center;
  11030. color: #6c6c6c;
  11031. }
  11032. .f_size_box img {
  11033. height: 20px;
  11034. }
  11035. .f_size_box>div {
  11036. margin: 0 8px;
  11037. }
  11038. .moveBtn {
  11039. display: flex;
  11040. flex-direction: column;
  11041. align-items: flex-end;
  11042. width: 40px;
  11043. }
  11044. </style>