addCourseGM.vue 227 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242
  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">AI 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 Blockly</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.parent.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/wu1676621845022.png",
  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.parent.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/wu1676621845022.png",
  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(`请将题目${i+1}填写完整。`);
  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(`题目${i+1}选项不能为空!`);
  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(`请将题目${i+1}填写完整。`);
  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(`题目${i+1}选项不能为空!`);
  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. this.courseTypeId = []
  4431. for (var i = 0; i < res.data[1].length; i++) {
  4432. this.courseTypeId.push(res.data[1][i].typeid);
  4433. }
  4434. console.log(this.courseTypeId);
  4435. // if (this.timer) clearInterval(this.timer);
  4436. if (this.timer) clearTimeout(this.timer);
  4437. this.timer = null;
  4438. // this.timer = setInterval(() => {
  4439. this.seleteCourseUpdate();
  4440. // }, 5000);
  4441. this.$forceUpdate();
  4442. setTimeout(() => {
  4443. this.checkEva(this.evalua);
  4444. }, 0);
  4445. })
  4446. .catch((err) => {
  4447. console.error(err);
  4448. });
  4449. }
  4450. },
  4451. seleteCourseUpdate() {
  4452. let params = {
  4453. cid: this.cid,
  4454. };
  4455. this.ajax
  4456. .get(this.$store.state.api + "select_course_detail", params)
  4457. .then((res) => {
  4458. // console.log(this.unitJson);
  4459. let unitJson = JSON.parse(res.data[0][0].chapters);
  4460. this.unitJson2 = JSON.parse(res.data[0][0].chapters);
  4461. let _unitJson2 = JSON.parse(JSON.stringify(this.unitJson));
  4462. let _unitJson = [];
  4463. let _chapAarry = [];
  4464. let _unitIndex = JSON.parse(JSON.stringify(this.unitIndex));
  4465. let _unitIndex2 = JSON.parse(JSON.stringify(this.unitIndex));
  4466. let index = 1;
  4467. let chapindex;
  4468. if (_unitJson2.length > unitJson.length) {
  4469. for (let c = 0; c < _unitJson2.length; c++) {
  4470. _chapAarry.push(_unitJson2[c].chapterInfo[0].chapterid);
  4471. }
  4472. for (let j = 0; j < unitJson.length; j++) {
  4473. let count = 0;
  4474. for (let k = 0; k < _unitJson2.length; k++) {
  4475. if (
  4476. unitJson[j].chapterInfo[0].chapterid ==
  4477. _unitJson2[k].chapterInfo[0].chapterid
  4478. ) {
  4479. count++;
  4480. _chapAarry.splice(
  4481. _chapAarry.indexOf(_unitJson2[k].chapterInfo[0].chapterid),
  4482. 1
  4483. );
  4484. _unitJson.push(unitJson[j]);
  4485. break;
  4486. }
  4487. }
  4488. // if(count === 0){
  4489. // this.$message.error("您所修改的阶段已经被其他老师删除了");
  4490. // }
  4491. }
  4492. for (let k = 0; k < _unitJson2.length; k++) {
  4493. if (_unitJson2[k].isUpdate == 1) {
  4494. _chapAarry.splice(
  4495. _chapAarry.indexOf(_unitJson2[k].chapterInfo[0].chapterid),
  4496. 1
  4497. );
  4498. _unitJson.push(_unitJson2[k]);
  4499. }
  4500. }
  4501. console.log(_chapAarry);
  4502. for (let d = 0; d < _unitJson2.length; d++) {
  4503. if (
  4504. _chapAarry.indexOf(_unitJson2[d].chapterInfo[0].chapterid) != -1
  4505. ) {
  4506. if (_unitIndex == d) {
  4507. index = 2;
  4508. }
  4509. chapindex = d;
  4510. // this.$message.error("您所修改的阶段已经被其他老师删除了");
  4511. }
  4512. }
  4513. } else {
  4514. _unitJson = JSON.parse(JSON.stringify(_unitJson2));
  4515. }
  4516. for (let i = 0; i < unitJson.length; i++) {
  4517. if (
  4518. (i < _unitJson.length - 1 || i == _unitJson.length - 1) &&
  4519. _unitJson[i].chapterInfo[0].chapterid !=
  4520. unitJson[i].chapterInfo[0].chapterid
  4521. ) {
  4522. if (i == _unitJson.length - 1) {
  4523. // this.unitIndex++
  4524. _unitIndex2++;
  4525. }
  4526. _unitJson.splice(i, 0, unitJson[i]);
  4527. } else if (i > _unitJson.length - 1) {
  4528. _unitJson.push(unitJson[i]);
  4529. } else if (
  4530. _unitJson[i].chapterInfo[0].chapterid ==
  4531. unitJson[i].chapterInfo[0].chapterid
  4532. ) {
  4533. _unitJson[i] = unitJson[i];
  4534. }
  4535. // if (i == _unitIndex) {
  4536. // continue;
  4537. // } else
  4538. }
  4539. if (_chapAarry.length && index != 2) {
  4540. if (chapindex < _unitIndex) {
  4541. this.isDelete = 2;
  4542. // this.unitIndex--;
  4543. _unitIndex2--;
  4544. } else if (
  4545. _unitJson2[_unitIndex].chapterInfo[0].chapterid !=
  4546. _unitJson[_unitIndex].chapterInfo[0].chapterid
  4547. ) {
  4548. this.isDelete = 2;
  4549. for (let n = 0; n < _unitJson.length; n++) {
  4550. if (
  4551. _unitJson2[_unitIndex].chapterInfo[0].chapterid ==
  4552. _unitJson[n].chapterInfo[0].chapterid
  4553. ) {
  4554. // this.unitIndex = n;
  4555. _unitIndex2 = n;
  4556. _unitJson[n] = _unitJson2[_unitIndex];
  4557. break;
  4558. }
  4559. }
  4560. }
  4561. } else if (index != 2) {
  4562. // _unitJson[this.unitIndex] = _unitJson2[_unitIndex];
  4563. _unitJson[_unitIndex2] = _unitJson2[_unitIndex];
  4564. }
  4565. if (index == 1) {
  4566. this.unitJson = _unitJson;
  4567. this.$forceUpdate();
  4568. setTimeout(() => {
  4569. if (this.unitIndex != _unitIndex2) {
  4570. this.isDelete = 2;
  4571. this.unitIndex = _unitIndex2;
  4572. }
  4573. }, 0);
  4574. this.timer = setTimeout(() => {
  4575. this.seleteCourseUpdate();
  4576. }, 1000);
  4577. } else if (index == 2) {
  4578. let _this = this;
  4579. _this
  4580. .$confirm(
  4581. "您所修改的阶段已经被其他老师删除了,需要恢复嘛?",
  4582. "提示",
  4583. {
  4584. confirmButtonText: "需要",
  4585. cancelButtonText: "取消",
  4586. type: "warning",
  4587. }
  4588. )
  4589. .then(() => {
  4590. if (_this.time()) {
  4591. _this.restoreWork(
  4592. _chapAarry[0],
  4593. _unitJson,
  4594. chapindex,
  4595. _unitJson2,
  4596. _unitIndex2
  4597. );
  4598. }
  4599. })
  4600. .catch(() => {
  4601. _this.unitJson = _unitJson;
  4602. _this.$forceUpdate();
  4603. setTimeout(() => {
  4604. if (this.unitIndex != _unitIndex2) {
  4605. this.isDelete = 2;
  4606. this.unitIndex = _unitIndex2;
  4607. }
  4608. }, 0);
  4609. _this.timer = setTimeout(() => {
  4610. _this.seleteCourseUpdate();
  4611. }, 1000);
  4612. });
  4613. }
  4614. })
  4615. .catch((err) => {
  4616. console.error(err);
  4617. });
  4618. },
  4619. restoreWork(chapid, unitJson, chapindex, unitJson2, unitIndex2) {
  4620. let params = [
  4621. {
  4622. cid: this.cid,
  4623. chapters: JSON.stringify(this.unitJson),
  4624. uid: this.userid,
  4625. chapid: chapid,
  4626. },
  4627. ];
  4628. this.ajax
  4629. .post(this.$store.state.api + "restoreWork", params)
  4630. .then((res) => {
  4631. this.$message({
  4632. message: "恢复成功",
  4633. type: "success",
  4634. });
  4635. unitJson.splice(chapindex, 0, unitJson2[chapindex]);
  4636. this.unitJson = unitJson;
  4637. this.$forceUpdate();
  4638. setTimeout(() => {
  4639. if (this.unitIndex != unitIndex2) {
  4640. this.isDelete = 2;
  4641. this.unitIndex = unitIndex2;
  4642. }
  4643. }, 0);
  4644. this.timer = setTimeout(() => {
  4645. this.seleteCourseUpdate();
  4646. }, 1000);
  4647. })
  4648. .catch((err) => {
  4649. this.$message.error("网络不佳");
  4650. console.error(err);
  4651. });
  4652. },
  4653. getTypeName() {
  4654. console.log(this.courseTypeId);
  4655. this.$forceUpdate();
  4656. },
  4657. selectType() {
  4658. this.ajax
  4659. .get(this.$store.state.api + "selectType")
  4660. .then((res) => {
  4661. this.CourseType = res.data;
  4662. for (var i = 0; i < res.data[0].length; i++) {
  4663. if (!this.cid) {
  4664. this.courseTypeId[res.data[0][i].id] = "";
  4665. }
  4666. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  4667. if (res.data[0][i].name == "栏目") {
  4668. this.CourseType[0][i].name = "主题";
  4669. }
  4670. }
  4671. for (var j = 0; j < res.data[1].length; j++) {
  4672. if (res.data[0][i].id == res.data[1][j].pid) {
  4673. if (!this.CourseTypeJson[res.data[0][i].id]) {
  4674. this.CourseTypeJson[res.data[0][i].id] = [];
  4675. }
  4676. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]); // 去除公共分类
  4677. }
  4678. }
  4679. }
  4680. this.selectTypeByOid();
  4681. this.selectTypeByOrg();
  4682. })
  4683. .catch((err) => {
  4684. console.error(err);
  4685. });
  4686. },
  4687. selectTypeByOid() {
  4688. let params = {
  4689. oid: this.oid,
  4690. };
  4691. this.ajax
  4692. .get(this.$store.state.api + "selectTypeByOid", params)
  4693. .then((res) => {
  4694. for (var i = 0; i < res.data[0].length; i++) {
  4695. for (var j = 0; j < res.data[1].length; j++) {
  4696. if (res.data[0][i].id == res.data[1][j].pid) {
  4697. if (!this.CourseTypeJson[res.data[0][i].id]) {
  4698. this.CourseTypeJson[res.data[0][i].id] = [];
  4699. }
  4700. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]);
  4701. }
  4702. }
  4703. }
  4704. })
  4705. .catch((err) => {
  4706. console.error(err);
  4707. });
  4708. },
  4709. selectTypeByOrg() {
  4710. let params = {
  4711. oid: this.org,
  4712. };
  4713. this.ajax
  4714. .get(this.$store.state.api + "selectTypeByOrg", params)
  4715. .then((res) => {
  4716. for (var i = 0; i < res.data[0].length; i++) {
  4717. for (var j = 0; j < res.data[1].length; j++) {
  4718. if (res.data[0][i].id == res.data[1][j].pid) {
  4719. if (!this.CourseTypeJson[res.data[0][i].id]) {
  4720. this.CourseTypeJson[res.data[0][i].id] = [];
  4721. }
  4722. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]);
  4723. }
  4724. }
  4725. }
  4726. this.$forceUpdate();
  4727. })
  4728. .catch((err) => {
  4729. console.error(err);
  4730. });
  4731. },
  4732. OtherMb(type) {
  4733. this.typeMode = type;
  4734. setTimeout(() => {
  4735. this.checkEva(this.checkId);
  4736. }, 0);
  4737. },
  4738. checkEva(id) {
  4739. this.selectEva();
  4740. this.evalua = id;
  4741. this.checkId = id;
  4742. if (this.evalua != "") {
  4743. for (var i = 0; i < this.evaJuri.length; i++) {
  4744. if (this.evalua == this.evaJuri[i].id) {
  4745. this.eTitle = this.evaJuri[i].title;
  4746. this.eJson = JSON.parse(this.evaJuri[i].content);
  4747. }
  4748. }
  4749. this.data.data = [];
  4750. this.$forceUpdate();
  4751. setTimeout(() => {
  4752. this.setMindData();
  4753. }, 500);
  4754. }
  4755. },
  4756. selectEva() {
  4757. let params = {
  4758. oid: this.oid,
  4759. };
  4760. this.ajax
  4761. .get(this.$store.state.api + "selectAllEvaluation", params)
  4762. .then((res) => {
  4763. this.evaJuri = res.data[0];
  4764. })
  4765. .catch((err) => {
  4766. console.error(err);
  4767. });
  4768. },
  4769. setMindData() {
  4770. let targetArray = [];
  4771. this.data.data = [];
  4772. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  4773. let _eJson = Object.keys(this.eJson);
  4774. let _e = this.eJson;
  4775. for (let i = 0; i < _eJson.length; i++) {
  4776. let element = _e[_eJson[i]];
  4777. this.data.data.push({
  4778. id: element.id,
  4779. parentid: "root",
  4780. topic: element.name,
  4781. });
  4782. targetArray.push({
  4783. id: element.id,
  4784. parentid: "root",
  4785. name: element.name,
  4786. });
  4787. let _eJsonc = Object.keys(element.child);
  4788. let _e2 = element.child;
  4789. for (let j = 0; j < _eJsonc.length; j++) {
  4790. let _ec = _e2[_eJsonc[j]];
  4791. this.data.data.push({
  4792. id: _ec.id,
  4793. parentid: element.id,
  4794. topic: _ec.name,
  4795. });
  4796. targetArray.push({
  4797. id: _ec.id,
  4798. parentid: element.id,
  4799. name: _ec.name,
  4800. });
  4801. let _eJsonz = Object.keys(_ec.child);
  4802. let _e3 = _ec.child;
  4803. for (let z = 0; z < _eJsonz.length; z++) {
  4804. let _ez = _e3[_eJsonz[z]];
  4805. this.data.data.push({
  4806. id: _ez.id,
  4807. parentid: _ec.id,
  4808. topic: _ez.name,
  4809. });
  4810. targetArray.push({
  4811. id: _ez.id,
  4812. parentid: _ec.id,
  4813. name: _ez.name,
  4814. });
  4815. }
  4816. }
  4817. }
  4818. this.targetArray = targetArray;
  4819. this.$forceUpdate();
  4820. },
  4821. /*添加评价 */
  4822. addEList(index, tIndex) {
  4823. this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList
  4824. ? this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList.push({
  4825. value: "",
  4826. detail: "",
  4827. score: 5,
  4828. })
  4829. : (this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList = [
  4830. { value: "", detail: "", score: 5 },
  4831. ]);
  4832. this.$forceUpdate();
  4833. },
  4834. forceUpdate() {
  4835. this.$forceUpdate();
  4836. },
  4837. deletEList(index, tIndex, eIndex) {
  4838. this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList.splice(
  4839. eIndex,
  4840. 1
  4841. );
  4842. this.$forceUpdate();
  4843. },
  4844. getChoosePic(t) {
  4845. this.chooseType = t;
  4846. this.getAllBanner();
  4847. },
  4848. getAllBanner() {
  4849. this.sysPicVisible = true;
  4850. let params = {
  4851. t: this.chooseType,
  4852. };
  4853. this.ajax
  4854. .get(this.$store.state.api + "selectAllBanner", params)
  4855. .then((res) => {
  4856. this.sysPic = res.data[0];
  4857. })
  4858. .catch((err) => {
  4859. console.error(err);
  4860. });
  4861. },
  4862. deleteSysPic() {
  4863. this.cover = [];
  4864. this.isSysPic = false;
  4865. },
  4866. deleteSelectPic() {
  4867. this.selectJson.url = "";
  4868. },
  4869. setEListStar() {
  4870. this.$forceUpdate();
  4871. },
  4872. deletRateList(i) {
  4873. this.rateJson.splice(i, 1);
  4874. },
  4875. addRateList() {
  4876. this.rateJson.push({ detail: "", score: 5, value: "" });
  4877. },
  4878. },
  4879. beforeDestroy() {
  4880. clearTimeout(this.timer);
  4881. this.timer = null;
  4882. },
  4883. beforeRouteLeave(to, from, next) {
  4884. clearTimeout(this.timer);
  4885. this.timer = null;
  4886. next();
  4887. },
  4888. created() {
  4889. this.getStudent();
  4890. this.getTeacher();
  4891. this.getClass();
  4892. this.getTemplate();
  4893. this.selectType();
  4894. this.selectEva();
  4895. this.loading = false;
  4896. setTimeout(() => {
  4897. this.selectCourseDetail();
  4898. this.selectEva();
  4899. }, 500);
  4900. },
  4901. };
  4902. </script>
  4903. <style scoped>
  4904. @media screen and (max-width: 1280px) {
  4905. .mbCss {
  4906. flex-direction: column !important;
  4907. }
  4908. .pjCss {
  4909. width: 100% !important;
  4910. }
  4911. .evaCss {
  4912. width: 100% !important;
  4913. }
  4914. }
  4915. .dialog_diy>>>.el-dialog__header {
  4916. background: #3c3c3c !important;
  4917. padding: 15px 20px;
  4918. }
  4919. .dialog_diy>>>.el-dialog__title {
  4920. color: #fff;
  4921. }
  4922. .dialog_diy>>>.el-dialog__headerbtn {
  4923. top: 19px;
  4924. }
  4925. .dialog_diy>>>.el-dialog__headerbtn .el-dialog__close {
  4926. color: #fff;
  4927. }
  4928. .dialog_diy>>>.el-dialog__headerbtn .el-dialog__close:hover {
  4929. color: #fff;
  4930. }
  4931. .dialog_diy>>>.el-dialog__body,
  4932. .dialog_diy>>>.el-dialog__footer {
  4933. background: #fafafa;
  4934. }
  4935. .dialog_diy3>>>.el-dialog__body,
  4936. .dialog_diy3>>>.el-dialog__footer {
  4937. background: #eee !important;
  4938. }
  4939. .dialog_diy3>>>.el-dialog__body {
  4940. padding: 20px 20px;
  4941. }
  4942. .left {
  4943. border-right: 1px solid rgb(60, 94, 143);
  4944. display: flex;
  4945. flex-direction: column;
  4946. align-items: center;
  4947. min-height: 600px;
  4948. width: 385px;
  4949. height: 80%;
  4950. }
  4951. .tips {
  4952. color: rgb(128, 128, 128);
  4953. font-size: 12px;
  4954. width: 270px;
  4955. margin: 40px;
  4956. }
  4957. .pb_content {
  4958. height: 100% !important;
  4959. /* margin: 0 20px 0 20px; */
  4960. }
  4961. .pb_content_body {
  4962. width: 100% !important;
  4963. height: 100%;
  4964. }
  4965. .info_solid {
  4966. width: 270px;
  4967. height: 30px;
  4968. border-left: 1px solid #bdbdbd;
  4969. margin: 10px 0px 10px 30px;
  4970. }
  4971. .info_steps {
  4972. width: 270px;
  4973. font-size: 0.875rem;
  4974. display: flex;
  4975. align-items: center;
  4976. }
  4977. .info_steps span:nth-child(1) {
  4978. width: 30px;
  4979. height: 30px;
  4980. background: rgba(0, 0, 0, 0.38);
  4981. display: block;
  4982. color: #fff;
  4983. border-radius: 40px;
  4984. text-align: center;
  4985. line-height: 30px;
  4986. }
  4987. .steps_active {
  4988. background: #3d67bc !important;
  4989. }
  4990. .info_steps span:nth-child(2) {
  4991. margin-left: 5px;
  4992. }
  4993. .right {
  4994. height: 100%;
  4995. width: 100%;
  4996. display: flex;
  4997. overflow: hidden;
  4998. }
  4999. .basic_box {
  5000. margin: 0 auto;
  5001. position: relative;
  5002. padding: 0 20px 0 20px;
  5003. }
  5004. .basic_box_success {
  5005. width: 100%;
  5006. min-height: 455px;
  5007. padding: 50px 0;
  5008. position: relative;
  5009. text-align: center;
  5010. /* border-bottom: 1px solid #bfbfbf; */
  5011. box-sizing: border-box;
  5012. display: flex;
  5013. align-items: center;
  5014. flex-direction: column;
  5015. justify-content: center;
  5016. }
  5017. .info_title {
  5018. font-size: 1.5em;
  5019. margin-right: 25px;
  5020. /* margin: 20px 30px 20px 30px; */
  5021. }
  5022. .bInfo_title {
  5023. text-align: left;
  5024. margin: 10px 0;
  5025. }
  5026. .small_title {
  5027. font-size: 14px;
  5028. line-height: 40px;
  5029. }
  5030. .chapter_beizhu {
  5031. font-size: 12px;
  5032. font-weight: bold;
  5033. float: right;
  5034. color: rgb(128, 128, 128);
  5035. margin-top: 5px;
  5036. }
  5037. .chapter_uploadBox1 {
  5038. text-align: left;
  5039. background-color: rgb(242, 242, 242);
  5040. width: 100%;
  5041. height: 67px;
  5042. padding: 0px 15px;
  5043. border-radius: 8px;
  5044. overflow: hidden;
  5045. font-size: 16px;
  5046. box-sizing: border-box;
  5047. position: relative;
  5048. }
  5049. .chapter_add {
  5050. width: 100%;
  5051. height: 32px;
  5052. margin-top: 15px;
  5053. cursor: pointer;
  5054. }
  5055. .chapter_add_l {
  5056. margin-left: 5px;
  5057. width: 30px;
  5058. height: 30px;
  5059. float: left;
  5060. border: 1px solid #aaa;
  5061. color: #aaa;
  5062. border-radius: 50%;
  5063. font-size: 25px;
  5064. text-align: center;
  5065. }
  5066. .chapter_add_r {
  5067. font-size: 18px;
  5068. height: 40px;
  5069. line-height: 30px;
  5070. text-indent: 10px;
  5071. color: #aaa;
  5072. }
  5073. .chapter_add_r span {
  5074. font-size: 12px;
  5075. color: rgb(204, 204, 204);
  5076. }
  5077. .chapter_add_input {
  5078. display: none;
  5079. }
  5080. .line {
  5081. width: 85%;
  5082. margin: 0 auto;
  5083. border-top: 1px solid #e5e5e5;
  5084. margin-top: 20px;
  5085. }
  5086. .info_btnBox {
  5087. width: 100%;
  5088. display: flex;
  5089. justify-content: space-evenly;
  5090. margin: 10px 0 10px 0;
  5091. }
  5092. .info_btn,
  5093. .teacherWord {
  5094. color: #fff;
  5095. background-color: #8681b7 !important;
  5096. padding: 8px 24px;
  5097. font-size: 0.9375rem;
  5098. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 2px 2px 0px rgb(0 0 0 / 14%),
  5099. 0px 3px 1px -2px rgb(0 0 0 / 12%);
  5100. min-width: 64px;
  5101. font-weight: 500;
  5102. border-radius: 4px;
  5103. box-sizing: border-box;
  5104. border: none;
  5105. cursor: pointer;
  5106. }
  5107. .teacherWord {
  5108. width: 105px !important;
  5109. text-align: center !important;
  5110. line-height: 36px !important;
  5111. padding: 0 !important;
  5112. font-size: 14px !important;
  5113. margin: 10px 0 !important;
  5114. }
  5115. .wordTeacher {
  5116. display: flex;
  5117. flex-direction: column;
  5118. width: 20%;
  5119. text-align: center;
  5120. font-size: 14px;
  5121. margin: 30px 30px 0 10px;
  5122. background: #fff;
  5123. position: relative;
  5124. border-radius: 5px;
  5125. padding: 25px 0px;
  5126. }
  5127. .wordPic {
  5128. margin: 0 auto;
  5129. width: 60px;
  5130. height: 60px;
  5131. cursor: pointer;
  5132. }
  5133. .deleteWord {
  5134. width: 22px;
  5135. height: 22px;
  5136. position: absolute;
  5137. right: 20px;
  5138. top: -10px;
  5139. cursor: pointer;
  5140. }
  5141. .wordPic>img,
  5142. .deleteWord>img,
  5143. .addToolImg>img {
  5144. width: 100%;
  5145. height: 100%;
  5146. }
  5147. .info_btn:hover {
  5148. background-color: #8681b7 !important;
  5149. }
  5150. .cru_selectBox {
  5151. display: flex;
  5152. margin: 24px 0 10px;
  5153. flex-wrap: nowrap;
  5154. white-space: nowrap;
  5155. overflow: auto;
  5156. position: relative;
  5157. height: 47px;
  5158. }
  5159. .cru_selectBox::-webkit-scrollbar {
  5160. /*滚动条整体样式*/
  5161. width: 6px;
  5162. /*高宽分别对应横竖滚动条的尺寸*/
  5163. height: 6px;
  5164. }
  5165. /*定义滚动条轨道 内阴影+圆角*/
  5166. .cru_selectBox::-webkit-scrollbar-track {
  5167. border-radius: 10px;
  5168. background-color: #eee;
  5169. }
  5170. /*定义滑块 内阴影+圆角*/
  5171. .cru_selectBox::-webkit-scrollbar-thumb {
  5172. border-radius: 10px;
  5173. -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  5174. background-color: rgba(0, 0, 0, 0.1);
  5175. }
  5176. .cru_line {
  5177. position: absolute;
  5178. bottom: 0px;
  5179. transition: all 0.5s;
  5180. left: 0px;
  5181. width: 110px;
  5182. margin-left: -25px;
  5183. }
  5184. .cru_select {
  5185. font-size: 21px;
  5186. margin-right: 37px;
  5187. margin-left: 5px;
  5188. cursor: pointer;
  5189. color: #a6a6a6;
  5190. }
  5191. .cru_selected {
  5192. color: #5c549f !important;
  5193. }
  5194. .chapter_contentbox {
  5195. display: flex;
  5196. align-items: center;
  5197. margin-top: 15px;
  5198. }
  5199. .chapter_contentbox div:nth-child(1) {
  5200. /* width: 150px; */
  5201. margin: 0px;
  5202. /* font-size: 2em; */
  5203. color: black;
  5204. display: block;
  5205. white-space: nowrap;
  5206. overflow: hidden;
  5207. text-overflow: ellipsis;
  5208. /* font-weight: 600; */
  5209. margin-right: 20px;
  5210. font-size: 18px;
  5211. }
  5212. .chapter_contentbox div:nth-child(2) {
  5213. width: 380px;
  5214. }
  5215. .chapter_contentbox div:nth-child(3),
  5216. .remove {
  5217. background-image: url(../../assets/remove.png);
  5218. cursor: pointer;
  5219. opacity: 0.5;
  5220. width: 40px;
  5221. height: 50px;
  5222. background-repeat: no-repeat;
  5223. background-position: 5px 10px;
  5224. }
  5225. .binfo_input {
  5226. font: inherit;
  5227. color: currentColor;
  5228. width: 100%;
  5229. margin: 0;
  5230. /* padding: 15px 14px; */
  5231. padding: 8px 14px;
  5232. display: block;
  5233. min-width: 0;
  5234. outline: none;
  5235. box-sizing: content-box;
  5236. background: none;
  5237. border: 1px solid rgba(0, 0, 0, 0.23);
  5238. border-radius: 4px;
  5239. box-sizing: border-box;
  5240. background: #fff;
  5241. font-size: 18px;
  5242. }
  5243. .binfo_input:focus-visible {
  5244. border: 1px solid rgba(61, 103, 188);
  5245. }
  5246. .time {
  5247. display: flex;
  5248. margin: 35px 0 80px 0;
  5249. }
  5250. .chapter_btnbox {
  5251. width: 160px;
  5252. border-radius: 5px;
  5253. border: 2px dashed gray;
  5254. display: flex;
  5255. padding: 8px 50px;
  5256. align-items: center;
  5257. justify-content: center;
  5258. margin: 30px auto 0;
  5259. cursor: pointer;
  5260. }
  5261. .icon_add {
  5262. position: relative;
  5263. width: 24px;
  5264. padding-top: 20px;
  5265. border-radius: 100%;
  5266. border-width: 2px;
  5267. border-style: solid;
  5268. border-color: gray;
  5269. }
  5270. .icon_add i:nth-child(1) {
  5271. position: absolute;
  5272. left: 50%;
  5273. top: 50%;
  5274. height: 60%;
  5275. transform: translate(-50%, -50%);
  5276. border-width: 1px;
  5277. border-style: solid;
  5278. border-color: inherit;
  5279. }
  5280. .icon_add i:nth-child(2) {
  5281. position: absolute;
  5282. top: 50%;
  5283. left: 50%;
  5284. width: 60%;
  5285. transform: translate(-50%, -50%);
  5286. border-width: 1px;
  5287. border-style: solid;
  5288. border-color: inherit;
  5289. }
  5290. .chapter_btn_w {
  5291. font-size: 0.9375rem;
  5292. font-weight: bold;
  5293. color: gray;
  5294. margin-left: 20px;
  5295. }
  5296. .disUoloadSty>>>.el-icon-plus {
  5297. display: none !important;
  5298. /* 上传按钮隐藏 */
  5299. }
  5300. .imgLeft {
  5301. margin: 15px 0;
  5302. }
  5303. .add_info_box {
  5304. margin: 20px 0;
  5305. }
  5306. .add_info_box button {
  5307. margin: 0 10px 10px 0;
  5308. }
  5309. .add_chapters_box {
  5310. text-align: left;
  5311. background-color: rgb(232 234 237);
  5312. width: 100%;
  5313. padding: 0px 15px;
  5314. border-radius: 15px;
  5315. font-size: 16px;
  5316. box-sizing: border-box;
  5317. position: relative;
  5318. padding: 0 10px 5px 10px;
  5319. height: 185px;
  5320. overflow-y: auto;
  5321. overflow-x: hidden;
  5322. }
  5323. .homework_box {
  5324. display: flex;
  5325. align-items: flex-start;
  5326. flex-wrap: wrap;
  5327. margin: 15px 0 0 0;
  5328. flex-direction: column;
  5329. align-content: flex-start;
  5330. }
  5331. .course_homework {
  5332. display: flex;
  5333. justify-content: center;
  5334. flex-direction: row;
  5335. align-items: center;
  5336. margin: 0 10px 0 0;
  5337. }
  5338. .course_homework>>>.el-input__inner {
  5339. width: 140px;
  5340. margin-left: 15px;
  5341. }
  5342. .chapter_upload_move {
  5343. position: relative;
  5344. background-color: #fff;
  5345. position: absolute;
  5346. width: 100%;
  5347. top: 0px;
  5348. left: 0px;
  5349. border: 1px solid #eee;
  5350. border-radius: 5px;
  5351. transition: width 2s;
  5352. -moz-transition: width 2s;
  5353. -webkit-transition: width 2s;
  5354. -o-transition: width 2s;
  5355. }
  5356. .chapter_upload_l_i {
  5357. background-image: url("../../assets/icon.png");
  5358. background-position: 3px -165px;
  5359. width: 30px;
  5360. height: 30px;
  5361. margin: 10px auto 0 auto;
  5362. }
  5363. .left_first {
  5364. display: flex;
  5365. flex-direction: column;
  5366. flex-wrap: nowrap;
  5367. }
  5368. .right_first {
  5369. width: 100%;
  5370. height: 100%;
  5371. margin-top: 15px;
  5372. }
  5373. .right_title {
  5374. height: 30px;
  5375. padding: 15px 0 15px 20px;
  5376. border-bottom: 1px solid #f2f2f2;
  5377. font-size: 1.5em;
  5378. font-weight: bold;
  5379. color: #5c549f;
  5380. margin: 0 auto;
  5381. }
  5382. .people {
  5383. border: 1px solid rgb(229 229 229);
  5384. height: 495px;
  5385. border-radius: 5px;
  5386. width: 100%;
  5387. overflow: auto;
  5388. }
  5389. .people_top {
  5390. display: flex;
  5391. width: 100%;
  5392. /* justify-content: space-between; */
  5393. /* align-items: center; */
  5394. flex-direction: column;
  5395. padding: 10px 25px 0;
  5396. box-sizing: border-box;
  5397. }
  5398. .people_nav,
  5399. .people_top_right {
  5400. /* padding: 20px 0 0 20px; */
  5401. }
  5402. .people_top_right {
  5403. height: 40px;
  5404. margin-bottom: 10px;
  5405. }
  5406. .people_search {
  5407. display: flex;
  5408. position: relative;
  5409. }
  5410. .people_search>>>.el-input__inner {
  5411. /* height: 25px; */
  5412. width: 95%;
  5413. }
  5414. .search_img {
  5415. width: 20px;
  5416. height: 20px;
  5417. position: absolute;
  5418. right: 30px;
  5419. top: 50%;
  5420. transform: translateY(-50%);
  5421. }
  5422. .search_img>img {
  5423. width: 100%;
  5424. height: 100%;
  5425. }
  5426. .people_name {
  5427. display: flex;
  5428. justify-content: flex-start;
  5429. padding: 20px 0 0 25px;
  5430. flex-direction: column;
  5431. flex-wrap: wrap;
  5432. }
  5433. .people_name>>>.el-checkbox {
  5434. width: 100%;
  5435. display: flex;
  5436. align-items: center;
  5437. margin-bottom: 10px;
  5438. }
  5439. .people_name>>>.el-checkbox__label {
  5440. text-overflow: ellipsis;
  5441. overflow: hidden;
  5442. width: 100%;
  5443. }
  5444. .right_img {
  5445. width: 150px;
  5446. height: 150px;
  5447. margin: 0 auto;
  5448. }
  5449. .right_img>img {
  5450. width: 100%;
  5451. height: 100%;
  5452. }
  5453. .number {
  5454. margin-top: 20px;
  5455. color: #4aa6ff;
  5456. text-decoration: underline;
  5457. }
  5458. .success_button {
  5459. display: flex;
  5460. text-align: center;
  5461. margin: 5% 0 auto;
  5462. flex-direction: row;
  5463. justify-content: center;
  5464. }
  5465. .look_course {
  5466. margin-right: 40px;
  5467. background: #3d67bc;
  5468. width: 200px;
  5469. height: 35px;
  5470. line-height: 35px;
  5471. color: #fff;
  5472. text-align: center;
  5473. font-size: 14px;
  5474. border-radius: 5px;
  5475. cursor: pointer;
  5476. }
  5477. .attend_others {
  5478. width: 250px;
  5479. background: #4fb13c;
  5480. height: 35px;
  5481. line-height: 35px;
  5482. color: #fff;
  5483. text-align: center;
  5484. font-size: 14px;
  5485. border-radius: 5px;
  5486. cursor: pointer;
  5487. }
  5488. .dialog_diy2>>>.el-dialog__body {
  5489. text-align: center;
  5490. }
  5491. .write_togother {
  5492. position: absolute;
  5493. right: 45px;
  5494. display: flex;
  5495. top: 5%;
  5496. }
  5497. .write_people {
  5498. font-size: 14px;
  5499. line-height: 50px;
  5500. padding-right: 10px;
  5501. }
  5502. .end_write {
  5503. background: #3d67bc;
  5504. color: #fff;
  5505. width: 100px;
  5506. height: 35px;
  5507. line-height: 35px;
  5508. text-align: center;
  5509. font-size: 14px;
  5510. border-radius: 5px;
  5511. cursor: pointer;
  5512. }
  5513. .chapter_upload {
  5514. height: 50px;
  5515. margin-top: 12px;
  5516. position: relative;
  5517. display: flex;
  5518. align-items: center;
  5519. width: 100%;
  5520. min-height: 50px;
  5521. }
  5522. .chapter_upload_t {
  5523. background-color: #fff;
  5524. position: absolute;
  5525. height: 100%;
  5526. top: 0px;
  5527. left: 0px;
  5528. border-radius: 40px;
  5529. box-sizing: border-box;
  5530. box-shadow: 0 0 3px 3px #dfdfdf;
  5531. }
  5532. .chapter_upload_o {
  5533. width: 100%;
  5534. height: 100%;
  5535. position: relative;
  5536. z-index: 1;
  5537. }
  5538. .chapter_upload_ic {
  5539. height: 30px;
  5540. float: right;
  5541. }
  5542. .chapter_upload_ic_l {
  5543. width: 50px;
  5544. height: 50px;
  5545. float: left;
  5546. }
  5547. .chapter_upload_ic_l div {
  5548. width: 30px;
  5549. height: 35px;
  5550. background: url("../../assets/icon/icon.png");
  5551. }
  5552. .chapter_upload_ic_r {
  5553. width: 50px;
  5554. height: 50px;
  5555. float: left;
  5556. margin-left: 0px;
  5557. display: flex;
  5558. align-items: center;
  5559. }
  5560. .chapter_upload_ic_r div {
  5561. width: 25px;
  5562. height: 25px;
  5563. background-image: url("../../assets/delete.png");
  5564. background-size: 100% 100%;
  5565. }
  5566. .chapter_upload_n {
  5567. display: flex;
  5568. text-indent: 10px;
  5569. text-decoration: none;
  5570. text-overflow: ellipsis;
  5571. white-space: nowrap;
  5572. overflow: hidden;
  5573. width: 55%;
  5574. margin-left: 10px;
  5575. cursor: pointer;
  5576. margin-top: 2px;
  5577. }
  5578. .chapter_upload_l_i1 {
  5579. background-image: url("../../assets/icon/video.png");
  5580. width: 28px;
  5581. height: 28px;
  5582. background-size: 100% 100%;
  5583. }
  5584. .chapter_upload_l_i5 {
  5585. background-image: url("../../assets/icon/word.png");
  5586. width: 24px;
  5587. height: 24px;
  5588. background-size: 100% 100%;
  5589. }
  5590. .chapter_upload_l_i8 {
  5591. background-image: url("../../assets/icon/line.png");
  5592. width: 24px;
  5593. height: 24px;
  5594. background-size: 100% 100%;
  5595. }
  5596. .chapter_upload_ud {
  5597. display: flex;
  5598. flex-direction: column;
  5599. margin-left: 5px;
  5600. justify-content: center;
  5601. }
  5602. .chapter_upload_up {
  5603. background-image: url("../../assets/icon/up.png");
  5604. width: 17px;
  5605. height: 15px;
  5606. background-size: 100% 100%;
  5607. cursor: pointer;
  5608. }
  5609. .chapter_upload_down {
  5610. background-image: url("../../assets/icon/down.png");
  5611. width: 17px;
  5612. height: 15px;
  5613. margin: 2px auto 0 auto;
  5614. background-size: 100% 100%;
  5615. cursor: pointer;
  5616. }
  5617. .addWordStyle {
  5618. display: flex;
  5619. flex-direction: row;
  5620. justify-content: flex-start;
  5621. overflow-x: auto;
  5622. white-space: nowrap;
  5623. flex-wrap: wrap;
  5624. }
  5625. /* table 样式 */
  5626. .cont>>>table {
  5627. border-top: 1px solid #ccc;
  5628. border-left: 1px solid #ccc;
  5629. }
  5630. .cont>>>table td,
  5631. .cont>>>table th {
  5632. border-bottom: 1px solid #ccc;
  5633. border-right: 1px solid #ccc;
  5634. padding: 3px 5px;
  5635. max-width: 0px;
  5636. }
  5637. .cont>>>table th {
  5638. border-bottom: 2px solid #ccc;
  5639. text-align: center;
  5640. }
  5641. /* blockquote 样式 */
  5642. .cont>>>blockquote {
  5643. display: block;
  5644. border-left: 8px solid #d0e5f2;
  5645. padding: 5px 10px;
  5646. margin: 10px 0;
  5647. line-height: 1.4;
  5648. font-size: 100%;
  5649. background-color: #f1f1f1;
  5650. }
  5651. /* code 样式 */
  5652. .cont>>>code {
  5653. display: inline-block;
  5654. *display: inline;
  5655. *zoom: 1;
  5656. background-color: #f1f1f1;
  5657. border-radius: 3px;
  5658. padding: 3px 5px;
  5659. margin: 0 3px;
  5660. }
  5661. .cont>>>pre code {
  5662. display: block;
  5663. }
  5664. /* ul ol 样式 */
  5665. .cont>>>ul,
  5666. ol {
  5667. margin: 10px 0 10px 20px;
  5668. }
  5669. .wordbox {
  5670. display: flex;
  5671. flex-wrap: wrap;
  5672. cursor: pointer;
  5673. width: 100%;
  5674. }
  5675. .checkword {
  5676. width: 22px;
  5677. height: 22px;
  5678. margin: 10px auto 0;
  5679. cursor: pointer;
  5680. }
  5681. .checkword img {
  5682. width: 100%;
  5683. }
  5684. .stepBg {
  5685. width: calc(100% - 50px);
  5686. display: flex;
  5687. justify-content: center;
  5688. align-items: center;
  5689. flex-wrap: nowrap;
  5690. background: #fff;
  5691. height: 100px;
  5692. margin: 0 auto 20px;
  5693. border-radius: 10px;
  5694. }
  5695. .stepBg>div {
  5696. height: 80px;
  5697. width: calc(100% / 4 - 90px);
  5698. min-width: 100px;
  5699. max-width: 240px;
  5700. cursor: pointer;
  5701. margin: 10px 10px;
  5702. border-radius: 10px;
  5703. }
  5704. .first,
  5705. .second,
  5706. .third,
  5707. .four {
  5708. background: #5c549f;
  5709. height: 90px;
  5710. color: #fff;
  5711. display: flex;
  5712. flex-direction: row;
  5713. align-items: center;
  5714. justify-content: center;
  5715. }
  5716. .first>div:nth-child(1),
  5717. .second>div:nth-child(1),
  5718. .third>div:nth-child(1),
  5719. .four>div:nth-child(1) {
  5720. margin: 5px 10px 0 0;
  5721. width: 2rem;
  5722. }
  5723. .firstNo,
  5724. .secondNo,
  5725. .thirdNo,
  5726. .fourNo {
  5727. background: #e7e7e7;
  5728. color: #adadad;
  5729. display: flex;
  5730. flex-direction: row;
  5731. align-items: center;
  5732. justify-content: center;
  5733. }
  5734. .firstNo>div:nth-child(1),
  5735. .secondNo>div:nth-child(1),
  5736. .thirdNo>div:nth-child(1),
  5737. .fourNo>div:nth-child(1) {
  5738. margin: 5px 10px 0 0;
  5739. width: 2rem;
  5740. }
  5741. .uploadWidth>>>.el-upload {
  5742. width: 60px;
  5743. height: 60px;
  5744. position: relative;
  5745. }
  5746. .addPeople {
  5747. background: #5491e4;
  5748. width: 150px;
  5749. height: 40px;
  5750. color: #fff;
  5751. border-radius: 5px;
  5752. text-align: center;
  5753. line-height: 40px;
  5754. font-size: 14px;
  5755. cursor: pointer;
  5756. margin-top: 20px;
  5757. }
  5758. .kcImg {
  5759. width: 60px;
  5760. margin-left: 10px;
  5761. }
  5762. .zyImg {
  5763. width: 55px;
  5764. margin: 0 10px;
  5765. }
  5766. .deleteZy {
  5767. width: 20px;
  5768. position: absolute;
  5769. top: 5px;
  5770. right: 5px;
  5771. cursor: pointer;
  5772. }
  5773. .kcImg>img,
  5774. .zyImg>img,
  5775. .deleteZy>img {
  5776. width: 100%;
  5777. height: 100%;
  5778. }
  5779. .zyBox {
  5780. display: flex;
  5781. flex-direction: row;
  5782. align-items: center;
  5783. background: #67d37d;
  5784. color: #fff;
  5785. width: 210px;
  5786. margin: 20px 20px 0 0;
  5787. border-radius: 10px;
  5788. height: 70px;
  5789. position: relative;
  5790. }
  5791. .upCss {
  5792. display: flex;
  5793. flex-direction: row;
  5794. justify-content: flex-start;
  5795. }
  5796. .upCss>>>.el-icon-plus {
  5797. position: none !important;
  5798. width: 200px;
  5799. height: 100px;
  5800. display: flex;
  5801. flex-wrap: nowrap;
  5802. flex-direction: column;
  5803. align-items: center;
  5804. justify-content: center;
  5805. border: 1px dashed #ccc;
  5806. min-width: 78px;
  5807. min-height: 100px;
  5808. z-index: 999;
  5809. }
  5810. .upCss>>>.el-upload-list__item-name {
  5811. width: 100px;
  5812. white-space: nowrap;
  5813. overflow: hidden;
  5814. text-overflow: ellipsis;
  5815. }
  5816. .addStageImg {
  5817. min-width: 25px;
  5818. min-height: 25px;
  5819. width: 25px;
  5820. height: 25px;
  5821. cursor: pointer;
  5822. }
  5823. .addHW {
  5824. width: 28px;
  5825. height: 28px;
  5826. cursor: pointer;
  5827. }
  5828. .addStageImg>img,
  5829. .addHW>img {
  5830. width: 100%;
  5831. height: 100%;
  5832. }
  5833. .addNewPP>>>.el-dialog__body {
  5834. padding: 5px 20px;
  5835. }
  5836. .isHeight {
  5837. height: 680px;
  5838. }
  5839. .toolChoose {
  5840. display: flex;
  5841. /* width: 100%; */
  5842. flex-direction: row;
  5843. flex-wrap: wrap;
  5844. }
  5845. .tool {
  5846. display: flex;
  5847. flex-direction: column;
  5848. flex-wrap: nowrap;
  5849. width: fit-content;
  5850. margin: 10px 0 10px 0;
  5851. align-items: center;
  5852. }
  5853. .tool+.tool {
  5854. margin-right: 45px;
  5855. }
  5856. .whiteBIcon {
  5857. width: 80px;
  5858. cursor: pointer;
  5859. display: flex;
  5860. flex-direction: column;
  5861. flex-wrap: nowrap;
  5862. align-items: center;
  5863. }
  5864. .whiteBIcon>img,
  5865. .toolIcon>img,
  5866. .arrow>img {
  5867. width: 100%;
  5868. height: 100%;
  5869. }
  5870. .check img {
  5871. width: 20px;
  5872. height: 20px;
  5873. }
  5874. .whiteBIcon>img {
  5875. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  5876. border-radius: 15px;
  5877. }
  5878. .check {
  5879. /* width: 20px;
  5880. height: 20px; */
  5881. cursor: pointer;
  5882. margin: 10px 0;
  5883. }
  5884. .checkDiv {
  5885. display: flex;
  5886. align-items: center;
  5887. }
  5888. .checkDiv span {
  5889. margin-left: 5px;
  5890. color: #858585;
  5891. }
  5892. .customWidth>>>.el-dialog {
  5893. min-width: 500px !important;
  5894. }
  5895. .a_addBox {
  5896. margin: 10px 0;
  5897. background: #fff;
  5898. padding: 15px;
  5899. max-height: 600px;
  5900. overflow: auto;
  5901. }
  5902. .a_add_box {
  5903. border-bottom: 2px solid #eee;
  5904. padding-bottom: 10px;
  5905. }
  5906. .a_add_head {
  5907. display: flex;
  5908. align-items: center;
  5909. justify-content: space-between;
  5910. margin: 10px 0;
  5911. font-size: 18px;
  5912. }
  5913. .a_add_checkType {
  5914. margin-top: 10px;
  5915. display: flex;
  5916. font-size: 16px;
  5917. }
  5918. .a_add_checkType span {
  5919. box-sizing: border-box;
  5920. padding: 0 0 5px 0;
  5921. cursor: pointer;
  5922. }
  5923. .a_add_checkType span+span {
  5924. margin-left: 10px;
  5925. }
  5926. .a_add_checkType .active {
  5927. border-bottom: 2px solid #5c549f;
  5928. color: #5c549f;
  5929. }
  5930. .a_add_head .a_add_head_input {
  5931. width: 300px;
  5932. }
  5933. .a_add_head .a_add_head_div {
  5934. display: flex;
  5935. align-items: center;
  5936. justify-content: space-between;
  5937. }
  5938. .a_add_body {
  5939. display: flex;
  5940. /* align-items: center; */
  5941. align-items: flex-end;
  5942. }
  5943. .a_add_input {
  5944. display: flex;
  5945. align-items: center;
  5946. flex-wrap: wrap;
  5947. }
  5948. .a_add_input_choice {
  5949. flex-direction: column;
  5950. margin-right: 10px;
  5951. }
  5952. .a_add_input_choice>>>.el-radio {
  5953. display: flex;
  5954. align-items: center;
  5955. flex-direction: row-reverse;
  5956. margin: 10px 0 0 0;
  5957. }
  5958. .a_add_input_choice>>>.el-checkbox {
  5959. display: flex;
  5960. align-items: center;
  5961. flex-direction: row-reverse;
  5962. margin: 10px 0 0 0;
  5963. }
  5964. .width100 {
  5965. width: 100%;
  5966. }
  5967. .a_add_input .a_add_persent {
  5968. width: 100%;
  5969. }
  5970. .a_add_persent_div {
  5971. width: 100%;
  5972. display: flex;
  5973. align-items: center;
  5974. }
  5975. .a_add_persent_div span {
  5976. margin: 5px 0;
  5977. }
  5978. .a_add_persent_div span:nth-child(1) {
  5979. width: 30%;
  5980. }
  5981. .a_add_persent_div span:nth-child(2) {
  5982. width: 7%;
  5983. }
  5984. .a_add_persent_div span:nth-child(3) {
  5985. width: 40%;
  5986. }
  5987. .a_add_body_div {
  5988. display: flex;
  5989. align-items: center;
  5990. justify-content: center;
  5991. /* flex-direction: column; */
  5992. }
  5993. .all_choose {
  5994. display: flex;
  5995. flex-direction: row;
  5996. align-items: flex-start;
  5997. width: 100%;
  5998. }
  5999. .all_choose>span {
  6000. width: 100px;
  6001. display: block;
  6002. letter-spacing: 14px;
  6003. white-space: nowrap;
  6004. overflow: hidden;
  6005. text-overflow: ellipsis;
  6006. }
  6007. .all_choose>>>.el-checkbox-group {
  6008. display: flex;
  6009. flex-direction: row;
  6010. width: 100%;
  6011. flex-wrap: wrap;
  6012. align-content: center;
  6013. justify-content: flex-start;
  6014. align-items: center;
  6015. margin-top: 3px;
  6016. }
  6017. .all_choose>.el-checkbox-group>>>.el-checkbox {
  6018. margin-bottom: 10px;
  6019. display: flex;
  6020. flex-direction: row;
  6021. align-items: center;
  6022. }
  6023. .all_choose2>.el-checkbox-group>>>.el-checkbox__input.is-checked .el-checkbox__inner,
  6024. .all_choose2>.el-checkbox-group>>>.el-checkbox__input.is-indeterminate .el-checkbox__inner1 {
  6025. background: #5c549f;
  6026. border-color: #5c549f;
  6027. }
  6028. .all_choose2>.el-checkbox-group>>>.el-checkbox__input.is-checked+.el-checkbox__label {
  6029. color: #5c549f;
  6030. }
  6031. .all_choose2>.el-checkbox-group>>>.el-checkbox__inner:hover {
  6032. border-color: #5c549f;
  6033. }
  6034. .all_choose2>.el-checkbox-group>>>.el-checkbox__input.is-focus .el-checkbox__inner {
  6035. border-color: #5c549f;
  6036. }
  6037. .all_choose>.el-checkbox-group>.el-checkbox>>>.el-checkbox__label {
  6038. min-width: 80px;
  6039. overflow: hidden;
  6040. width: 80px;
  6041. text-overflow: ellipsis;
  6042. white-space: nowrap;
  6043. }
  6044. .all_choose>.el-checkbox-group>.el-checkbox>>>.el-checkbox__label:hover {
  6045. width: auto;
  6046. }
  6047. .choose>div:nth-child(3)>span {
  6048. letter-spacing: 0 !important;
  6049. }
  6050. .choose {
  6051. display: flex;
  6052. flex-direction: column;
  6053. flex-wrap: nowrap;
  6054. height: 100%;
  6055. justify-content: space-evenly;
  6056. align-items: flex-start;
  6057. }
  6058. .both {
  6059. display: flex;
  6060. flex-direction: row;
  6061. flex-wrap: wrap;
  6062. width: 100%;
  6063. align-items: center;
  6064. justify-content: flex-start;
  6065. margin: 30px 0;
  6066. }
  6067. .notice>>>.el-dialog {
  6068. width: 500px !important;
  6069. text-align: center;
  6070. }
  6071. .notice>>>.el-button {
  6072. margin-top: 20px;
  6073. }
  6074. .whiteBg {
  6075. background: #fff;
  6076. border-radius: 10px;
  6077. }
  6078. .chooseWho {
  6079. display: flex;
  6080. width: 380px;
  6081. flex-direction: row;
  6082. flex-wrap: nowrap;
  6083. /* justify-content: space-between; */
  6084. padding-bottom: 10px;
  6085. }
  6086. .chooseWho>div {
  6087. cursor: pointer;
  6088. padding-bottom: 10px;
  6089. font-weight: bold;
  6090. }
  6091. .chooseWho>div+div {
  6092. margin-left: 10px;
  6093. }
  6094. .isChooseActive {
  6095. color: #5c549f;
  6096. border-bottom: 2px solid #5c549f;
  6097. }
  6098. .toolSort {
  6099. display: flex;
  6100. flex-direction: row;
  6101. flex-wrap: wrap;
  6102. justify-content: flex-start;
  6103. align-items: flex-start;
  6104. }
  6105. .toolSort>div {
  6106. margin-right: 45px;
  6107. }
  6108. .tools {
  6109. width: 100%;
  6110. display: flex;
  6111. flex-direction: column;
  6112. flex-wrap: nowrap;
  6113. align-items: flex-start;
  6114. }
  6115. .leftTools,
  6116. .rightTools {
  6117. width: 50%;
  6118. }
  6119. .rightTools {
  6120. display: flex;
  6121. flex-direction: row;
  6122. flex-wrap: nowrap;
  6123. justify-content: space-around;
  6124. }
  6125. .firstToolList {
  6126. display: flex;
  6127. flex-direction: column;
  6128. flex-wrap: nowrap;
  6129. align-items: center;
  6130. }
  6131. .iconList {
  6132. display: flex;
  6133. flex-direction: row;
  6134. flex-wrap: wrap;
  6135. justify-content: flex-start;
  6136. align-items: center;
  6137. margin: 20px 0 5px 0;
  6138. width: 240px;
  6139. min-width: 240px;
  6140. }
  6141. .iconTool {
  6142. display: flex;
  6143. flex-direction: column;
  6144. flex-wrap: nowrap;
  6145. align-items: center;
  6146. justify-content: flex-start;
  6147. margin: 15px 10px;
  6148. }
  6149. .toolIcon {
  6150. width: 50px;
  6151. }
  6152. .taskBorder {
  6153. border: 1px solid #e1e1e1;
  6154. border-radius: 10px;
  6155. margin-top: 20px;
  6156. min-height: 1160px;
  6157. position: relative;
  6158. background: #fbfbfb;
  6159. }
  6160. .smallTaskBorder {
  6161. height: 170px;
  6162. min-height: 170px !important;
  6163. overflow: hidden;
  6164. }
  6165. .taskBorder>div {
  6166. padding: 30px 0 10px 30px;
  6167. }
  6168. .addTaskBorder {
  6169. border: 2px solid #e1e1e1;
  6170. border-radius: 10px;
  6171. margin-top: 25px;
  6172. cursor: pointer;
  6173. }
  6174. .addTaskBorder>div {
  6175. margin: 0 auto;
  6176. display: flex;
  6177. align-items: center;
  6178. justify-content: center;
  6179. }
  6180. .addTaskBorder>div>img {
  6181. width: 100px;
  6182. }
  6183. .addTaskBorder>div>span {
  6184. font-size: 23px;
  6185. color: #dbdbdb;
  6186. }
  6187. .funBlock {
  6188. display: flex;
  6189. padding: 15px 0;
  6190. flex-direction: row;
  6191. justify-content: flex-end;
  6192. align-items: center;
  6193. position: absolute;
  6194. right: 15px;
  6195. bottom: 35px;
  6196. }
  6197. .fold {
  6198. display: flex;
  6199. margin: 0 10px;
  6200. flex-direction: row;
  6201. align-items: center;
  6202. cursor: pointer;
  6203. }
  6204. .arrow {
  6205. width: 15px;
  6206. height: 15px;
  6207. margin-left: 10px;
  6208. }
  6209. .addToolFun {
  6210. display: flex;
  6211. width: 150px;
  6212. flex-direction: row;
  6213. align-items: center;
  6214. justify-content: center;
  6215. border: 1px dashed;
  6216. border-radius: 5px;
  6217. height: 50px;
  6218. margin: 35px auto 0;
  6219. cursor: pointer;
  6220. }
  6221. .addToolImg {
  6222. width: 30px;
  6223. height: 30px;
  6224. margin-right: 20px;
  6225. }
  6226. .addToolsDia>>>.el-dialog__body {
  6227. padding: 20px;
  6228. }
  6229. .addToolsDia>>>.el-dialog__body>.toolChoose {
  6230. padding: 0;
  6231. }
  6232. .addToolsDia>>>.el-dialog__body>.toolChoose>.leftTools {
  6233. padding: 0;
  6234. border-bottom: none;
  6235. margin-bottom: 0;
  6236. }
  6237. .addToolsDia>>>.el-dialog__body>.toolChoose>.leftTools>.chooseWho {
  6238. width: 100%;
  6239. }
  6240. .lineCss>>>.el-form-item__label {
  6241. width: auto !important;
  6242. }
  6243. .lineCss>>>.el-form-item__content {
  6244. margin-left: 50px !important;
  6245. }
  6246. .newSteps {
  6247. display: flex;
  6248. width: 100% !important;
  6249. height: 80px;
  6250. cursor: pointer;
  6251. margin: 10px 0;
  6252. border-radius: 10px;
  6253. flex-direction: row;
  6254. align-content: center;
  6255. justify-content: center;
  6256. align-items: center;
  6257. margin: 0 !important;
  6258. }
  6259. /* 评价样式 */
  6260. .elist_css {
  6261. padding-bottom: 60px !important;
  6262. }
  6263. .elist_title {
  6264. margin-bottom: 10px;
  6265. }
  6266. .elist_input {}
  6267. .elist_input_box {
  6268. display: flex;
  6269. align-items: center;
  6270. flex-wrap: wrap;
  6271. }
  6272. .elist_input_box+.elist_input_box {
  6273. margin-top: 30px;
  6274. }
  6275. .elist_input .elist_input_box input {
  6276. font: inherit;
  6277. color: currentColor;
  6278. /* width: 200px; */
  6279. max-width: 200px;
  6280. padding: 8px 14px;
  6281. display: block;
  6282. min-width: 0;
  6283. outline: none;
  6284. border: 1px solid rgba(0, 0, 0, 0.23);
  6285. border-radius: 4px;
  6286. box-sizing: border-box;
  6287. background: #fff;
  6288. margin: 0 20px 0 0;
  6289. }
  6290. .elist_input .elist_input_box span {
  6291. height: 36px;
  6292. line-height: 36px;
  6293. color: rgb(82, 82, 82);
  6294. min-width: 80px;
  6295. }
  6296. .elist_input .elist_input_box .remove {
  6297. height: 20px;
  6298. width: 20px;
  6299. background-size: 100% 100%;
  6300. background-position: unset;
  6301. margin-left: 5px;
  6302. }
  6303. .elist_input_box>>>.el-rate {
  6304. display: flex;
  6305. height: 36px;
  6306. align-items: center;
  6307. }
  6308. .elist_input_box .elist_inptu_text {
  6309. width: 100%;
  6310. display: flex;
  6311. align-items: center;
  6312. margin-top: 10px;
  6313. }
  6314. .elist_input_box .elist_inptu_text input {
  6315. /* width: 500px; */
  6316. width: 100%;
  6317. max-width: unset;
  6318. }
  6319. .elist_input_box>>>.el-rate__icon {
  6320. font-size: 24px;
  6321. }
  6322. .elist_btn {
  6323. margin-top: 10px;
  6324. }
  6325. .lineTitle {
  6326. margin-top: 15px;
  6327. width: 110px;
  6328. }
  6329. .courseTop {
  6330. display: flex;
  6331. flex-direction: row;
  6332. justify-content: flex-start;
  6333. align-items: center;
  6334. /* width: 100%; */
  6335. width: calc(100% - 50px);
  6336. /* background: rgb(255, 255, 255); */
  6337. /* border-radius: 10px; */
  6338. padding: 20px 0;
  6339. margin: 0 auto;
  6340. }
  6341. .stepsNav {
  6342. display: flex;
  6343. flex-direction: row;
  6344. justify-content: flex-start;
  6345. align-items: center;
  6346. }
  6347. .stepsWord {
  6348. font-size: 18px;
  6349. color: #fff;
  6350. font-weight: bold;
  6351. margin-left: auto;
  6352. background: rgb(159, 151, 211);
  6353. border-radius: 5px;
  6354. padding: 3px 25px;
  6355. box-sizing: border-box;
  6356. }
  6357. .rightBox {
  6358. width: calc(100% - 50px);
  6359. background: rgb(255, 255, 255);
  6360. border-radius: 10px;
  6361. overflow: auto;
  6362. height: calc(100% - 255px);
  6363. margin: 0 auto;
  6364. position: relative;
  6365. }
  6366. .e_add_top {
  6367. display: flex;
  6368. justify-content: space-between;
  6369. padding: 20px 20px 0 20px;
  6370. border-radius: 3px;
  6371. background: #fff;
  6372. }
  6373. .e_add_title2 {
  6374. display: flex;
  6375. align-items: center;
  6376. }
  6377. .e_add_title2 span {
  6378. width: 40px;
  6379. }
  6380. .e_add_title {
  6381. display: flex;
  6382. align-items: center;
  6383. color: #b8b8b8;
  6384. font-size: 18px;
  6385. position: relative;
  6386. height: 40px;
  6387. }
  6388. .e_add_title span {
  6389. margin-right: 10px;
  6390. }
  6391. .e_add_title .el_input {
  6392. width: 300px;
  6393. }
  6394. .e_add_title>>>.el-input__inner {
  6395. width: 400px;
  6396. }
  6397. .e_add_btn {}
  6398. .e_add_content {
  6399. display: flex;
  6400. width: 100%;
  6401. }
  6402. .e_add_list {
  6403. background: #fff;
  6404. height: 500px;
  6405. width: 210px;
  6406. position: relative;
  6407. margin: 15px 5px 0 0;
  6408. flex-shrink: 0;
  6409. display: flex;
  6410. flex-direction: column;
  6411. }
  6412. .e_add_list_title {
  6413. font-size: 20px;
  6414. width: 100%;
  6415. box-sizing: border-box;
  6416. padding: 15px 40px;
  6417. text-align: center;
  6418. border-bottom: 1px solid #eaeaea;
  6419. position: relative;
  6420. display: flex;
  6421. align-items: center;
  6422. justify-content: center;
  6423. height: 57px;
  6424. background: #f6f6f6;
  6425. }
  6426. .e_add_list_title span {
  6427. overflow: hidden;
  6428. white-space: nowrap;
  6429. text-overflow: ellipsis;
  6430. }
  6431. .e_add_list_title img {
  6432. position: absolute;
  6433. right: 15px;
  6434. width: 25px;
  6435. cursor: pointer;
  6436. top: 50%;
  6437. transform: translateY(-50%);
  6438. }
  6439. .e_add_list_body {
  6440. height: calc(100% - 187px);
  6441. overflow: auto;
  6442. }
  6443. .e_add_list_child {
  6444. width: 100%;
  6445. display: flex;
  6446. align-items: center;
  6447. justify-content: center;
  6448. position: relative;
  6449. box-sizing: border-box;
  6450. padding: 15px 40px;
  6451. text-align: center;
  6452. }
  6453. .e_add_list_child span {
  6454. overflow: hidden;
  6455. white-space: nowrap;
  6456. text-overflow: ellipsis;
  6457. cursor: pointer;
  6458. }
  6459. .e_add_list_child img {
  6460. position: absolute;
  6461. right: 10px;
  6462. width: 21px;
  6463. cursor: pointer;
  6464. top: 50%;
  6465. transform: translateY(-50%);
  6466. }
  6467. .e_add_list_child+.e_add_list_child {
  6468. border-top: 1px solid #eaeaea;
  6469. }
  6470. .e_add_list_child .active {
  6471. color: #409eff;
  6472. }
  6473. .e_add_list_btn {
  6474. position: absolute;
  6475. bottom: 0;
  6476. height: 50px;
  6477. background: rgb(120, 120, 254);
  6478. width: 100%;
  6479. color: #fff;
  6480. font-size: 16px;
  6481. text-align: center;
  6482. line-height: 50px;
  6483. cursor: pointer;
  6484. }
  6485. .e_add_list_detail {
  6486. position: absolute;
  6487. bottom: 0;
  6488. height: 130px;
  6489. background: rgb(120, 120, 254);
  6490. width: 100%;
  6491. color: #fff;
  6492. font-size: 16px;
  6493. display: flex;
  6494. align-items: center;
  6495. justify-content: center;
  6496. }
  6497. .e_add_list_detail textarea {
  6498. height: 90%;
  6499. width: 95%;
  6500. border: none;
  6501. resize: none;
  6502. outline: none;
  6503. padding: 5px;
  6504. box-sizing: border-box;
  6505. }
  6506. .e_add_list_pbox {
  6507. width: 100%;
  6508. }
  6509. .e_add_list_pbox_title {
  6510. height: 50px;
  6511. background: #fff;
  6512. display: flex;
  6513. align-items: center;
  6514. width: 100%;
  6515. box-sizing: border-box;
  6516. padding: 0 20px;
  6517. flex-direction: row;
  6518. flex-wrap: wrap;
  6519. }
  6520. .type_title {
  6521. font-size: 18px;
  6522. font-weight: 700;
  6523. }
  6524. .type_content {
  6525. font-size: 16px;
  6526. margin-left: 30px;
  6527. }
  6528. .type_content span+span {
  6529. margin-left: 20px;
  6530. }
  6531. .type_content span {
  6532. cursor: pointer;
  6533. padding-bottom: 5px;
  6534. box-sizing: border-box;
  6535. }
  6536. .type_content .active {
  6537. color: #5c549f;
  6538. border-bottom: 2px solid #5c549f;
  6539. }
  6540. .e_add_list_pbox_content {
  6541. height: calc(100% - 20px);
  6542. display: flex;
  6543. align-items: center;
  6544. width: 100%;
  6545. background: #fff;
  6546. }
  6547. .mbCss {
  6548. width: 100%;
  6549. display: flex;
  6550. flex-direction: row;
  6551. flex-wrap: nowrap;
  6552. align-content: center;
  6553. align-items: flex-start;
  6554. justify-content: flex-start;
  6555. }
  6556. .pjCss {
  6557. /* width: 42%; */
  6558. width: calc(100% - 55%);
  6559. display: flex;
  6560. flex-direction: column;
  6561. flex-wrap: nowrap;
  6562. align-items: flex-start;
  6563. margin-top: 1.5%;
  6564. }
  6565. .e_box {
  6566. display: flex;
  6567. flex-wrap: wrap;
  6568. max-height: 500px;
  6569. align-items: flex-start;
  6570. overflow: auto;
  6571. }
  6572. .e_card {
  6573. border: 1px solid #ccc;
  6574. background: #fff;
  6575. margin-right: 20px;
  6576. width: 270px;
  6577. display: flex;
  6578. flex-direction: column;
  6579. align-items: center;
  6580. border-radius: 5px;
  6581. margin-top: 10px;
  6582. text-align: center;
  6583. }
  6584. .e_card_picture {
  6585. margin: 10px 0;
  6586. }
  6587. .e_card_picture>img {
  6588. width: 50px;
  6589. }
  6590. .e_card_name {
  6591. width: 100%;
  6592. padding: 0 10px;
  6593. box-sizing: border-box;
  6594. margin-bottom: 10px;
  6595. overflow: hidden;
  6596. text-overflow: ellipsis;
  6597. white-space: nowrap;
  6598. }
  6599. .e_card_time {
  6600. width: 100%;
  6601. padding: 0 10px;
  6602. box-sizing: border-box;
  6603. font-size: 15px;
  6604. color: #c3c3c3;
  6605. margin-bottom: 10px;
  6606. }
  6607. .e_card_btn {
  6608. height: 40px;
  6609. display: flex;
  6610. align-items: center;
  6611. width: 100%;
  6612. background: rgb(244, 244, 244);
  6613. }
  6614. .e_card_btn:hover {
  6615. background: rgb(221 221 221);
  6616. }
  6617. .e_card_btn span {
  6618. flex: 1 1 auto;
  6619. text-align: center;
  6620. cursor: pointer;
  6621. }
  6622. .addEva {
  6623. border: 1px solid #ccc;
  6624. background: #fff;
  6625. margin-right: 20px;
  6626. width: 270px;
  6627. height: 149px;
  6628. display: flex;
  6629. flex-direction: column;
  6630. align-items: center;
  6631. border-radius: 5px;
  6632. margin-top: 10px;
  6633. text-align: center;
  6634. cursor: pointer;
  6635. justify-content: center;
  6636. }
  6637. .addEva>img {
  6638. width: 50px;
  6639. object-fit: cover;
  6640. }
  6641. .uploadFm {
  6642. border: 1px dashed #ccc;
  6643. width: 202px;
  6644. height: 102px;
  6645. position: relative;
  6646. cursor: pointer;
  6647. }
  6648. .uploadFm>img {
  6649. position: absolute;
  6650. top: 25px;
  6651. left: 35%;
  6652. width: 50px;
  6653. }
  6654. .fileCss {
  6655. width: 100%;
  6656. display: flex;
  6657. flex-direction: row;
  6658. flex-wrap: nowrap;
  6659. justify-content: space-around;
  6660. align-items: center;
  6661. padding-top: 15px;
  6662. }
  6663. .sysPicBox {
  6664. display: flex;
  6665. flex-direction: row;
  6666. flex-wrap: wrap;
  6667. align-content: flex-start;
  6668. height: 435px;
  6669. overflow: auto;
  6670. }
  6671. .sysPic {
  6672. width: 200px;
  6673. height: 115px;
  6674. margin: 0 20px 20px 0;
  6675. cursor: pointer;
  6676. }
  6677. .sysPic>img,
  6678. .isSysPic>img,
  6679. .deletePic>img {
  6680. width: 100%;
  6681. height: 100%;
  6682. object-fit: cover;
  6683. }
  6684. .isSysPic {
  6685. width: 200px;
  6686. height: 115px;
  6687. position: relative;
  6688. }
  6689. .deletePic {
  6690. width: 20px;
  6691. height: 20px;
  6692. position: absolute;
  6693. top: 0;
  6694. right: 0;
  6695. cursor: pointer;
  6696. }
  6697. .select_box1 {}
  6698. .select_box1_img {
  6699. background: #fff;
  6700. border-radius: 5px;
  6701. padding: 15px;
  6702. box-sizing: border-box;
  6703. margin-bottom: 20px;
  6704. }
  6705. .select_box1_title {
  6706. padding: 0 0 15px 0;
  6707. border-bottom: 1px solid #eee;
  6708. margin-bottom: 15px;
  6709. }
  6710. .select_box1_title span:nth-child(1) {
  6711. font-size: 16px;
  6712. margin-right: 20px;
  6713. color: #000;
  6714. }
  6715. .select_box1_title span:nth-child(2) {
  6716. font-size: 14px;
  6717. color: rgb(112, 112, 112);
  6718. }
  6719. .select_box1_add_img {}
  6720. .select_box1_select {
  6721. background: #fff;
  6722. border-radius: 5px;
  6723. padding: 15px;
  6724. box-sizing: border-box;
  6725. }
  6726. .select_box2 {}
  6727. .select_box2_title {
  6728. background: #fff;
  6729. border-radius: 5px;
  6730. padding: 5px 10px;
  6731. box-sizing: border-box;
  6732. margin-bottom: 10px;
  6733. }
  6734. .select_box2_box {
  6735. display: flex;
  6736. height: 500px;
  6737. }
  6738. .select_box2_img {
  6739. width: calc(100% - 310px);
  6740. height: 100%;
  6741. overflow: auto;
  6742. background: #fff;
  6743. border-radius: 5px;
  6744. }
  6745. .select_box2_img img {
  6746. width: 100%;
  6747. }
  6748. .select_box2_answer {
  6749. background: #fff;
  6750. margin-left: 10px;
  6751. border-radius: 5px;
  6752. width: 300px;
  6753. overflow: auto;
  6754. height: 100%;
  6755. display: flex;
  6756. flex-direction: column;
  6757. align-items: center;
  6758. padding-top: 10px;
  6759. box-sizing: border-box;
  6760. }
  6761. .select_box2_answer_box {
  6762. margin: 0 0 10px 0;
  6763. width: 85%;
  6764. }
  6765. .rate_textarea {
  6766. font: inherit;
  6767. color: currentColor;
  6768. width: 100%;
  6769. padding: 8px 14px;
  6770. display: block;
  6771. min-width: 0;
  6772. outline: none;
  6773. border: 1px solid rgba(0, 0, 0, 0.23);
  6774. border-radius: 4px;
  6775. box-sizing: border-box;
  6776. background: #fff;
  6777. margin: 0 20px 0 0;
  6778. resize: none;
  6779. }
  6780. .select_answer_title {
  6781. text-align: left;
  6782. width: 85%;
  6783. margin-bottom: 10px;
  6784. font-size: 18px;
  6785. color: #8e8e8e;
  6786. }
  6787. .mask {
  6788. background-color: rgb(0 0 0 / 30%);
  6789. /* position: fixed; */
  6790. position: absolute;
  6791. top: 0;
  6792. left: 0;
  6793. width: 100%;
  6794. height: 100%;
  6795. z-index: 90;
  6796. display: flex;
  6797. align-items: center;
  6798. justify-content: center;
  6799. }
  6800. .progressBox {
  6801. width: 300px;
  6802. height: 150px;
  6803. background: #fff;
  6804. border-radius: 10px;
  6805. box-shadow: 0 0 6px 1px #bfbfbf;
  6806. display: flex;
  6807. align-items: center;
  6808. justify-content: center;
  6809. flex-direction: column;
  6810. }
  6811. .progressBox .lbox {
  6812. height: 100px;
  6813. font-size: 16px;
  6814. display: flex;
  6815. align-items: center;
  6816. }
  6817. .progressBox .lbox img {
  6818. width: 40px;
  6819. margin-right: 20px;
  6820. }
  6821. .progressBox>>>.el-progress-bar__outer {
  6822. background-color: #d1dfff !important;
  6823. }
  6824. .progressBox .lbox {
  6825. height: 100px;
  6826. font-size: 19px;
  6827. display: flex;
  6828. align-items: center;
  6829. }
  6830. .progressBox .lbox img {
  6831. width: 40px;
  6832. margin-right: 20px;
  6833. }
  6834. .s_switch>>>.el-switch__label.is-active {
  6835. color: #5c549f;
  6836. }
  6837. .cancel_button>>>.el-button:focus,
  6838. .cancel_button>>>.el-button:hover {
  6839. color: rgb(92, 84, 159);
  6840. border-color: #5c549f;
  6841. background-color: #dbd7ff;
  6842. }
  6843. .confirm_button {
  6844. background: #5c549f;
  6845. border-color: #5c549f;
  6846. }
  6847. .stepsNav>>>.el-breadcrumb__inner a:hover,
  6848. .stepsNav>>>.el-breadcrumb__inner.is-link:hover {
  6849. color: #5c549f;
  6850. }
  6851. .updateTips::after {
  6852. content: "协同编辑课程暂不支持修改基本信息,只支持修改阶段内容。";
  6853. font-size: 14px;
  6854. margin-left: 20px;
  6855. font-weight: 400;
  6856. color: #ff3a3a;
  6857. }
  6858. .updateMask {
  6859. width: 100%;
  6860. z-index: 3;
  6861. top: 0;
  6862. position: absolute;
  6863. }
  6864. .t_j_box {
  6865. display: flex;
  6866. }
  6867. .t_j_box span:nth-child(1) {
  6868. width: 15%;
  6869. overflow: hidden;
  6870. margin-right: 10px;
  6871. text-overflow: ellipsis;
  6872. white-space: nowrap;
  6873. }
  6874. .t_j_box span:nth-child(2) {
  6875. width: 30%;
  6876. overflow: hidden;
  6877. text-overflow: ellipsis;
  6878. margin-right: 10px;
  6879. }
  6880. .t_j_box span:nth-child(3) {
  6881. width: calc(55% - 20px);
  6882. overflow: hidden;
  6883. text-overflow: ellipsis;
  6884. }
  6885. </style>