addCourse.vue 225 KB

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