addCourseGM.vue 227 KB

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